temp_app (This will setup all your spine stuff - which we will use to create the app.) • cp -r temp_app/* . • rm -r temp_app • npm install . • rm public/favicon.ico • hem server • visit: localhost:9294 (welcome to spine!) Monday, December 5, 2011
spec/spec_helper.rb • touch spec/acceptance/ index_spec.rb • bundle exec rspec spec/ acceptance/* require File.dirname(__FILE__) + '/../ spec_helper' describe "Index.html" do before(:each) do visit '/index.html' end before(:all) do Capybara.current_driver = :selenium end after(:all) do Capybara.use_default_driver end it "says ExampleApp" do page.has_css?("title:contains ('ExampleApp')").should be_true end end Monday, December 5, 2011