Skip to content

Commit

Permalink
Moved acceptance tests under spec
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Tillman authored and ndbroadbent committed Feb 23, 2012
1 parent ec42bae commit 1ee67de
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,20 @@
require File.expand_path("../../spec/spec_helper.rb", __FILE__)
require File.expand_path("../spec_helper.rb", __FILE__)

# Put your acceptance spec helpers inside spec/acceptance/support
require 'steak'
require 'capybara/rails'

module Steak::Capybara
include Rack::Test::Methods
include Capybara

def app
::Rails.application
end
end

RSpec.configuration.include Steak::Capybara, :type => :acceptance

# Put your acceptance spec helpers inside /spec/acceptance/support
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}

# Workaround for ActionDispatch::ClosedError
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@
page.should have_content('Create Account')
end

#scenario 'should create a new account', :js => true do
#visit accounts_path
#click_link "Create Account"
#fill_in 'account_name', :with => "My new account"
#click_button 'Create Account'
#page.should have_content('My new account')
#end
#~ scenario 'should create a new account', :js => true do
#~ visit accounts_path
#~ click_link "Create Account"
#~ fill_in 'account_name', :with => "My new account"
#~ click_button 'Create Account'
#~ page.should have_content('My new account')
#~ end

end
File renamed without changes.
File renamed without changes.

0 comments on commit 1ee67de

Please sign in to comment.