Permalink
Switch branches/tags
Nothing to show
Commits on Sep 4, 2011
  1. License...

    Nicklas Ramhöj committed Sep 4, 2011
  2. Added all the steps to the README file.

    Nicklas Ramhöj committed Sep 4, 2011
  3. Added a cucumber scenario that executes Javascript

    Step:
    01. Add a feature
    02. Tag a scenario with @javascript
    Nicklas Ramhöj committed Sep 4, 2011
  4. Added request spec that uses selenium to execute Javascript

    Steps:
    01. write a request spec
    02. set :js => true
    Nicklas Ramhöj committed Sep 4, 2011
  5. Added javascript unit tests using Evergreen

    Steps:
    01. brew install node
    02. npm install -g coffee-script
    03. Create a coffee script file in app/coffee
    04. mkdir public/javascripts
    05. coffee --compile --output public/javascripts/ --watch app/coffee/
    06. Write the coffescript file in app/coffee
    07. Write the javascript test in spec/javascripts
    08. Add the spec helper in in spec/javascripts/spec_helper.coffee
    09. Add gem 'evergreen', :require => 'evergreen/rails' to the Gemfile
    10. Remove the asset pipline gems
    11. bundle install
    12. Turn off the asset pipline in application.rb
    13. rails server
    14. Go to localhost:3000/evergreen
    15. Run b rake spec:javascripts
    Nicklas Ramhöj committed with Nicklas Ramhöj Sep 4, 2011
Commits on Sep 3, 2011
  1. Added acceptance test using Capybara and RSpec

    Steps:
    01. add gem 'capybara' to Gemfile (not required if you still have cucumber as dependency)
    02. require 'capybara/rspec' in your test helper
    03. add a root route
    05. remove the static html index file
    06. write an capybara-rspec request spec
    07. b rspec spec/request/manage_posts_spec.rb
    Nicklas Ramhöj committed with Nicklas Ramhöj Sep 3, 2011
  2. Added unit spec with RSpec

    Steps:
    01. add gem 'rspec-rails', '~> 2.6' to Gemfile
    02. add gem 'machinist' to Gemfile
    03. add gem 'faker' to Gemfile
    04. bundle install
    05. rails generate rspec:install
    06. write a unit test
    07. add blueprints
    08. b rspec spec/models/posts_spec.rb
    Nicklas Ramhöj committed Sep 3, 2011
  3. Generated cucumber feature with rails scaffold

    Steps:
    
    01. rails generate cucumber:feature post title:string body:text published:boolean
    02. rails generate scaffold post title:string body:text published:boolean
    03. rake db:migrate
    04. rake db:test:prepare
    05. add gem 'database_cleaner' to gemfile
    06. rake cucumber
    Nicklas Ramhöj committed Sep 3, 2011
  4. Installed cucumber-rails

    Steps:
    01. add cucumber-rails to the gemfile
    02. bundle install
    03. b gem update
    04. gem update --system
    05. rails generate cucumber:install
    Nicklas Ramhöj committed with Nicklas Ramhöj Sep 3, 2011
  5. Rails 3.1 default generated files

    Steps:
    01. mkdir app
    02. cd app
    03. echo "rvm use 1.9.2-p180@app --create"
    04. cd ..
    05. cd app
    06. gem install rails -v="3.1"
    07. gem install bundler -v ="1.1.pre8"
    08. add "alias b='bundle exec'" to ~/.bash/aliases
    Nicklas Ramhöj committed with Nicklas Ramhöj Sep 3, 2011
  6. .rvmrc file

    Nicklas Ramhöj committed Sep 3, 2011