Sha256: a5f0a1565ff269ab311d5ece6a4f86c387400d0a5ca258346b10ca1c84d11e02

Contents?: true

Size: 1.61 KB

Versions: 10

Compression:

Stored size: 1.61 KB

Contents

require "bard/template/helper"

# Testing Environment
with_options :env => :cucumber, :lib => false do |env|
  env.gem "cucumber",    :version => "0.4.3"
  env.gem "webrat",      :version => "0.5.3"
  env.gem "rspec",       :version => "1.2.9"
  env.gem "rspec-rails", :version => "1.2.9"
  env.gem "email_spec",  :version => "0.4.0"
  env.gem "machinist",   :version => "1.0.6"
  env.gem "pickle",      :version => "0.2.1"
  env.gem "faker",       :version => "0.3.1"
end
rake "gems:install RAILS_ENV=cucumber"

plugin "cucumber_rails_debug", :git => "git://github.com/mischa/cucumber_rails_debug"

generate "rspec"
generate "cucumber", "--skip"
generate "email_spec"
generate "pickle"

file "features/support/blueprints.rb", <<-END
require "machinist/active_record"
require "faker"

Sham.name { Faker::Name.name }
Sham.email { Faker::Internet.email }
Sham.sentence { Faker::Lorem.sentence }
Sham.paragraph { Faker::Lorem.paragraph }
Sham.url { "http://\#{Faker::Internet.domain_name}/\#{Faker::Lorem.words(3).join('_').downcase}" }

Sham.address { Faker::Address.street_address }
Sham.city { Faker::Address.city }
Sham.zip { Faker::Address.zip_code }
Sham.phone { Faker::PhoneNumber.phone_number }
END
run "ln -s features/support/blueprints.rb spec/blueprints.rb"

file "features/support/debug.rb", <<-END
require "ruby-debug"
require "cucumber_rails_debug/steps"
END

file "features/support/email.rb", <<-END
# Email testing helpers
require "email_spec"
require "email_spec/cucumber"
END

run "rake db:create RAILS_ENV=test"

git :add => "."
git :commit => "-m'added rspec and cucumber setups.'"

run "cap stage"
run "cap staging:bootstrap:ci"

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
bard-0.10.0 lib/bard/template/testing.rb
bard-0.9.14 lib/bard/template/testing.rb
bard-0.9.13 lib/bard/template/testing.rb
bard-0.9.12 lib/bard/template/testing.rb
bard-0.9.11 lib/bard/template/testing.rb
bard-0.9.10 lib/bard/template/testing.rb
bard-0.9.9 lib/bard/template/testing.rb
bard-0.9.8 lib/bard/template/testing.rb
bard-0.9.7 lib/bard/template/testing.rb
bard-0.9.6 lib/bard/template/testing.rb