Permalink
Browse files

added rspec, fabrication, cucumber, fixed requiring lib

  • Loading branch information...
1 parent 4236b9c commit 01caef8ebfa67bd7d3d3cde97ab6cbc5e5b1417a @dominic dominic committed Aug 28, 2011
View
1 .rspec
@@ -0,0 +1 @@
+--colour
View
@@ -19,3 +19,8 @@ gem 'jquery-rails'
# Use unicorn as the web server
gem 'unicorn'
+group :development, :test do
+ gem 'fabrication'
+ gem 'rspec-rails'
+ gem 'cucumber-rails'
+end
View
@@ -33,30 +33,56 @@ GEM
arel (2.2.1)
bcrypt-ruby (2.1.4)
builder (3.0.0)
+ capybara (1.0.1)
+ mime-types (>= 1.16)
+ nokogiri (>= 1.3.3)
+ rack (>= 1.0.0)
+ rack-test (>= 0.5.4)
+ selenium-webdriver (~> 2.0)
+ xpath (~> 0.1.4)
+ childprocess (0.2.2)
+ ffi (~> 1.0.6)
coffee-rails (3.1.0.rc.6)
coffee-script (>= 2.2.0)
railties (~> 3.1.0.rc1)
coffee-script (2.2.0)
coffee-script-source
execjs
coffee-script-source (1.1.2)
+ cucumber (1.0.2)
+ builder (>= 2.1.2)
+ diff-lcs (>= 1.1.2)
+ gherkin (~> 2.4.5)
+ json (>= 1.4.6)
+ term-ansicolor (>= 1.0.5)
+ cucumber-rails (1.0.2)
+ capybara (>= 1.0.0)
+ cucumber (~> 1.0.0)
+ nokogiri (>= 1.4.6)
+ diff-lcs (1.1.3)
erubis (2.7.0)
execjs (1.2.4)
multi_json (~> 1.0)
+ fabrication (1.1.0)
+ ffi (1.0.9)
+ gherkin (2.4.16)
+ json (>= 1.4.6)
haml (3.1.2)
hike (1.2.1)
i18n (0.6.0)
jquery-rails (1.0.13)
railties (~> 3.0)
thor (~> 0.14)
json (1.5.3)
+ json_pure (1.5.3)
kgio (2.6.0)
mail (2.3.0)
i18n (>= 0.4.0)
mime-types (~> 1.16)
treetop (~> 1.4.8)
mime-types (1.16)
multi_json (1.0.3)
+ nokogiri (1.5.0)
polyglot (0.3.2)
rack (1.3.2)
rack-cache (1.0.2)
@@ -85,16 +111,36 @@ GEM
raindrops (0.7.0)
rake (0.9.2)
rdoc (3.9.4)
+ rspec (2.6.0)
+ rspec-core (~> 2.6.0)
+ rspec-expectations (~> 2.6.0)
+ rspec-mocks (~> 2.6.0)
+ rspec-core (2.6.4)
+ rspec-expectations (2.6.0)
+ diff-lcs (~> 1.1.2)
+ rspec-mocks (2.6.0)
+ rspec-rails (2.6.1)
+ actionpack (~> 3.0)
+ activesupport (~> 3.0)
+ railties (~> 3.0)
+ rspec (~> 2.6.0)
+ rubyzip (0.9.4)
sass (3.1.7)
sass-rails (3.1.0.rc.6)
actionpack (~> 3.1.0.rc6)
railties (~> 3.1.0.rc6)
sass (>= 3.1.4)
+ selenium-webdriver (2.5.0)
+ childprocess (>= 0.2.1)
+ ffi (>= 1.0.7)
+ json_pure
+ rubyzip
sprockets (2.0.0.beta.15)
hike (~> 1.2)
rack (~> 1.0)
tilt (~> 1.1, != 1.3.0)
sqlite3 (1.3.4)
+ term-ansicolor (1.0.6)
thor (0.14.6)
tilt (1.3.3)
treetop (1.4.10)
@@ -108,16 +154,21 @@ GEM
kgio (~> 2.4)
rack
raindrops (~> 0.6)
+ xpath (0.1.4)
+ nokogiri (~> 1.3)
PLATFORMS
ruby
DEPENDENCIES
coffee-rails (~> 3.1.0.rc)
+ cucumber-rails
+ fabrication
haml
jquery-rails
json
rails (= 3.1.0.rc6)
+ rspec-rails
sass-rails (~> 3.1.0.rc)
sqlite3
uglifier
View
@@ -11,7 +11,7 @@
module HacketyHackCom
class Application < Rails::Application
- config.autoload_paths += %W(lib)
+ config.autoload_paths += %W(#{config.root}/lib)
config.encoding = "utf-8"
@@ -21,9 +21,10 @@ class Application < Rails::Application
config.generators do |g|
g.template_engine :haml
+ g.test_framework :rspec, :fixture => true
+ g.fixture_replacement :fabrication
# you can also specify a different test framework or ORM here
- # g.test_framework :rspec
# g.orm :mongoid
end
end
View
@@ -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
View
@@ -12,7 +12,7 @@ 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: &test
adapter: sqlite3
database: db/test.sqlite3
pool: 5
@@ -23,3 +23,6 @@ production:
database: db/production.sqlite3
pool: 5
timeout: 5000
+
+cucumber:
+ <<: *test
View
@@ -0,0 +1,16 @@
+# encoding: UTF-8
+# This file is auto-generated from the current state of the database. Instead
+# of editing this file, please use the migrations feature of Active Record to
+# incrementally modify your database, and then regenerate this schema definition.
+#
+# Note that this schema.rb definition is the authoritative source for your
+# database schema. If you need to create the application database on another
+# system, you should be using db:schema:load, not running all the migrations
+# from scratch. The latter is a flawed and unsustainable approach (the more migrations
+# you'll amass, the slower it'll run and the greater likelihood for issues).
+#
+# It's strongly recommended to check this file into your version control system.
+
+ActiveRecord::Schema.define(:version => 0) do
+
+end
Oops, something went wrong.

0 comments on commit 01caef8

Please sign in to comment.