Skip to content

Commit

Permalink
added rspec, fabrication, cucumber, fixed requiring lib
Browse files Browse the repository at this point in the history
  • Loading branch information
dominic committed Aug 28, 2011
1 parent 4236b9c commit 01caef8
Show file tree
Hide file tree
Showing 24 changed files with 543 additions and 39 deletions.
1 change: 1 addition & 0 deletions .rspec
@@ -0,0 +1 @@
--colour
5 changes: 5 additions & 0 deletions Gemfile
Expand Up @@ -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
51 changes: 51 additions & 0 deletions Gemfile.lock
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand All @@ -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
Expand Down
5 changes: 3 additions & 2 deletions config/application.rb
Expand Up @@ -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"

Expand All @@ -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
Expand Down
8 changes: 8 additions & 0 deletions config/cucumber.yml
@@ -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
5 changes: 4 additions & 1 deletion config/database.yml
Expand Up @@ -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
Expand All @@ -23,3 +23,6 @@ production:
database: db/production.sqlite3
pool: 5
timeout: 5000

cucumber:
<<: *test
16 changes: 16 additions & 0 deletions db/schema.rb
@@ -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

0 comments on commit 01caef8

Please sign in to comment.