forked from engageis/festivaldeideias
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ignored .sw* files, created an initial pages layout and initial tests…
… with cucumber.
- Loading branch information
1 parent
be69f69
commit e871da4
Showing
35 changed files
with
407 additions
and
67 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,3 +13,6 @@ | |
# Ignore all logfiles and tempfiles. | ||
/log/*.log | ||
/tmp | ||
|
||
.sw* | ||
/temp |
Binary file added
BIN
+555 Bytes
.sass-cache/38bd0836f5e83e6fe496b8622563e417ef1a4666/aplication.css.sassc
Binary file not shown.
Binary file added
BIN
+556 Bytes
.sass-cache/38bd0836f5e83e6fe496b8622563e417ef1a4666/application.css.sassc
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
@import compass | ||
@import _blueprint | ||
@import compass/reset | ||
//= require_self | ||
//= require_tree . |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
class PagesController < ApplicationController | ||
|
||
def ideas_more_active | ||
|
||
end | ||
end |
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
.navigation | ||
h3 Navegue nas ideias | ||
|
||
h4 Por estatísticas | ||
ul | ||
li | ||
a[href=""] Mais populares | ||
li Recém iniciadas | ||
li Recentemente alteradas | ||
|
||
h4 Por categoria | ||
ul | ||
li Mobilidade urbana | ||
li Violência | ||
li Catástrofes naturais |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
DOCTYPE | ||
html | ||
head | ||
title Festival de Ideias | ||
= stylesheet_link_tag "application" | ||
= javascript_include_tag "application" | ||
= csrf_meta_tags | ||
body | ||
header | ||
|
||
.body | ||
aside | ||
= render :partial => "layouts/filters" | ||
section | ||
= yield | ||
|
||
footer |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
h1 Ideias populares | ||
|
||
ol.more_active | ||
li | ||
.badge | ||
img[alt="Badge" title="badge" src=""] | ||
h2 Circuito de webcam entre vizinhos | ||
span Iniciada por Maria Chica | ||
p | ||
Lorem ipsum sit amet, consecteur | ||
|
||
a.button[href=""] | ||
|Conheça e contribua | ||
.stats | ||
.like_count 45 | ||
.people_count 3 | ||
|
||
|
||
li | ||
.badge | ||
img[alt="Badge" title="badge" src=""] | ||
h2 Circuito de webcam entre vizinhos | ||
span Iniciada por Maria Chica | ||
p | ||
Lorem ipsum sit amet, consecteur | ||
|
||
a.button[href=""] | ||
|Conheça e contribua | ||
.stats | ||
.like_count 45 | ||
.people_count 3 | ||
|
||
li | ||
.badge | ||
img[alt="Badge" title="badge" src=""] | ||
h2 Circuito de webcam entre vizinhos | ||
span Iniciada por Maria Chica | ||
p | ||
Lorem ipsum sit amet, consecteur | ||
|
||
a.button[href=""] | ||
|Conheça e contribua | ||
.stats | ||
.like_count 45 | ||
.people_count 3 |
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<% | ||
rerun = File.file?('rerun.txt') ? IO.read('rerun.txt') : "" | ||
rerun_opts = rerun.to_s.strip.empty? ? "--format #{ENV['CUCUMBER_FORMAT'] || 'progress'} features" : "--format #{ENV['CUCUMBER_FORMAT'] || 'pretty'} #{rerun}" | ||
std_opts = "--format #{ENV['CUCUMBER_FORMAT'] || 'pretty'} --strict --tags ~@wip" | ||
%> | ||
default: <%= std_opts %> features | ||
wip: --tags @wip:3 --wip features | ||
rerun: <%= rerun_opts %> --format rerun --out rerun.txt --strict --tags ~@wip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,13 @@ | ||
# SQLite version 3.x | ||
# gem install sqlite3 | ||
# | ||
# Ensure the SQLite 3 gem is defined in your Gemfile | ||
# gem 'sqlite3' | ||
development: &defaults | ||
adapter: postgresql | ||
host: localhost | ||
username: runeroniek | ||
database: meu_rio_development | ||
|
||
frontend: | ||
<<: *defaults | ||
|
||
database: festival_ideias_development | ||
# Warning: The database defined as "test" will be erased and | ||
# re-generated from your development database when you run "rake". | ||
# Do not set this db to the same as development or production. | ||
test: &test | ||
<<: *defaults | ||
database: meu_rio_test | ||
|
||
|
||
database: festival_ideias_test | ||
cucumber: | ||
<<: *test |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,58 +1,6 @@ | ||
FestivalDeIdeias::Application.routes.draw do | ||
# The priority is based upon order of creation: | ||
# first created -> highest priority. | ||
|
||
# Sample of regular route: | ||
# match 'products/:id' => 'catalog#view' | ||
# Keep in mind you can assign values other than :controller and :action | ||
|
||
# Sample of named route: | ||
# match 'products/:id/purchase' => 'catalog#purchase', :as => :purchase | ||
# This route can be invoked with purchase_url(:id => product.id) | ||
match '/ideas/mais-colaboradas' => "pages#ideas_more_active", :as => :ideas_more_active | ||
|
||
# Sample resource route (maps HTTP verbs to controller actions automatically): | ||
# resources :products | ||
|
||
# Sample resource route with options: | ||
# resources :products do | ||
# member do | ||
# get 'short' | ||
# post 'toggle' | ||
# end | ||
# | ||
# collection do | ||
# get 'sold' | ||
# end | ||
# end | ||
|
||
# Sample resource route with sub-resources: | ||
# resources :products do | ||
# resources :comments, :sales | ||
# resource :seller | ||
# end | ||
|
||
# Sample resource route with more complex sub-resources | ||
# resources :products do | ||
# resources :comments | ||
# resources :sales do | ||
# get 'recent', :on => :collection | ||
# end | ||
# end | ||
|
||
# Sample resource route within a namespace: | ||
# namespace :admin do | ||
# # Directs /admin/products/* to Admin::ProductsController | ||
# # (app/controllers/admin/products_controller.rb) | ||
# resources :products | ||
# end | ||
|
||
# You can have the root of your site routed with "root" | ||
# just remember to delete public/index.html. | ||
# root :to => 'welcome#index' | ||
|
||
# See how all your routes lay out with "rake routes" | ||
|
||
# This is a legacy wild controller route that's not recommended for RESTful applications. | ||
# Note: This route will make all actions in every controller accessible via GET requests. | ||
# match ':controller(/:action(/:id(.:format)))' | ||
end |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
Feature: View more active Ideas | ||
In order to participate in more active ideas | ||
As a visitor | ||
I want to view a selection of the more active ideas | ||
|
||
Scenario: View a selection of active ideas | ||
Given I'm in the more active ideas page | ||
Then I should see "Ideias mais colaboradas" | ||
|
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Given /^I'm in the more active ideas page$/ do | ||
visit ideas_more_active_path | ||
end | ||
|
||
Then /^I should see (\w+) $/ do | ||
page.should have_content("Ideias mais colaboradas") | ||
end |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
# IMPORTANT: This file is generated by cucumber-rails - edit at your own peril. | ||
# It is recommended to regenerate this file in the future when you upgrade to a | ||
# newer version of cucumber-rails. Consider adding your own code to a new file | ||
# instead of editing this one. Cucumber will automatically load all features/**/*.rb | ||
# files. | ||
|
||
require 'cucumber/rails' | ||
|
||
# Capybara defaults to XPath selectors rather than Webrat's default of CSS3. In | ||
# order to ease the transition to Capybara we set the default here. If you'd | ||
# prefer to use XPath just remove this line and adjust any selectors in your | ||
# steps to use the XPath syntax. | ||
Capybara.default_selector = :css | ||
|
||
# By default, any exception happening in your Rails application will bubble up | ||
# to Cucumber so that your scenario will fail. This is a different from how | ||
# your application behaves in the production environment, where an error page will | ||
# be rendered instead. | ||
# | ||
# Sometimes we want to override this default behaviour and allow Rails to rescue | ||
# exceptions and display an error page (just like when the app is running in production). | ||
# Typical scenarios where you want to do this is when you test your error pages. | ||
# There are two ways to allow Rails to rescue exceptions: | ||
# | ||
# 1) Tag your scenario (or feature) with @allow-rescue | ||
# | ||
# 2) Set the value below to true. Beware that doing this globally is not | ||
# recommended as it will mask a lot of errors for you! | ||
# | ||
ActionController::Base.allow_rescue = false | ||
|
||
# Remove/comment out the lines below if your app doesn't have a database. | ||
# For some databases (like MongoDB and CouchDB) you may need to use :truncation instead. | ||
begin | ||
DatabaseCleaner.strategy = :transaction | ||
rescue NameError | ||
raise "You need to add database_cleaner to your Gemfile (in the :test group) if you wish to use it." | ||
end | ||
|
||
# You may also want to configure DatabaseCleaner to use different strategies for certain features and scenarios. | ||
# See the DatabaseCleaner documentation for details. Example: | ||
# | ||
# Before('@no-txn,@selenium,@culerity,@celerity,@javascript') do | ||
# DatabaseCleaner.strategy = :truncation, {:except => %w[widgets]} | ||
# end | ||
# | ||
# Before('~@no-txn', '~@selenium', '~@culerity', '~@celerity', '~@javascript') do | ||
# DatabaseCleaner.strategy = :transaction | ||
# end | ||
# | ||
|
||
# Possible values are :truncation and :transaction | ||
# The :transaction strategy is faster, but might give you threading problems. | ||
# See https://github.com/cucumber/cucumber-rails/blob/master/features/choose_javascript_database_strategy.feature | ||
Cucumber::Rails::Database.javascript_strategy = :truncation | ||
|
Oops, something went wrong.