Skip to content

Instantly share code, notes, and snippets.

@pietia

pietia/Gemfile Secret

Created November 14, 2012 11:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pietia/a1a5fe787dfc698e05ba to your computer and use it in GitHub Desktop.
Save pietia/a1a5fe787dfc698e05ba to your computer and use it in GitHub Desktop.
source "http://rubygems.org"
gem "capybara", "~> 2.0.0"
gem "rspec"
GEM
remote: http://rubygems.org/
specs:
addressable (2.3.2)
capybara (2.0.0)
mime-types (>= 1.16)
nokogiri (>= 1.3.3)
rack (>= 1.0.0)
rack-test (>= 0.5.4)
selenium-webdriver (~> 2.0)
xpath (~> 1.0.0)
childprocess (0.3.6)
ffi (~> 1.0, >= 1.0.6)
diff-lcs (1.1.3)
ffi (1.1.5)
libwebsocket (0.1.5)
addressable
mime-types (1.19)
multi_json (1.3.7)
nokogiri (1.5.5)
rack (1.4.1)
rack-test (0.6.2)
rack (>= 1.0)
rspec (2.12.0)
rspec-core (~> 2.12.0)
rspec-expectations (~> 2.12.0)
rspec-mocks (~> 2.12.0)
rspec-core (2.12.0)
rspec-expectations (2.12.0)
diff-lcs (~> 1.1.3)
rspec-mocks (2.12.0)
rubyzip (0.9.9)
selenium-webdriver (2.26.0)
childprocess (>= 0.2.5)
libwebsocket (~> 0.1.3)
multi_json (~> 1.0)
rubyzip
xpath (1.0.0)
nokogiri (~> 1.3)
PLATFORMS
ruby
DEPENDENCIES
capybara (~> 2.0.0)
rspec
Failures:
1) Updating account should allow to change first name and surname
Failure/Error: visit("/")
Selenium::WebDriver::Error::UnknownError:
Component returned failure code: 0x804b000a (NS_ERROR_MALFORMED_URI) [nsIIOService.newURI]
# ./spec/features/account/update_spec.rb:9:in `block (2 levels) in <top (required)>'
2) Updating account should allow to update avatar
Failure/Error: visit("/")
Selenium::WebDriver::Error::UnknownError:
Component returned failure code: 0x804b000a (NS_ERROR_MALFORMED_URI) [nsIIOService.newURI]
# ./spec/features/account/update_spec.rb:9:in `block (2 levels) in <top (required)>'
Finished in 2.42 seconds
2 examples, 2 failures
Failed examples:
rspec ./spec/features/account/update_spec.rb:16 # Updating account should allow to change first name and surname
rspec ./spec/features/account/update_spec.rb:25 # Updating account should allow to update avatar
require 'spec_helper'
feature "Updating account" do
before do
end
before do
visit("/")
click_link("Login")
fill_in("user_email", :with => "blah@wp.pl")
fill_in("user_password", :with => "itsnotreal")
click_button("Sign in")
end
scenario "should allow to change first name and surname" do
find("#user-nav a.account").click
fill_in("user_first_name", :with => "asd")
fill_in("user_last_name", :with => "asdf")
click_button("Update")
page.should have_content("Your account information has been updated.")
page.should have_content("asd asdf")
end
end
Bundler.setup(:default, :test)
require 'rspec'
require 'capybara/rspec'
Capybara.default_driver = :selenium
Capybara.run_server = false
Capybara.app_host = "http://staging.someserver.com"
RSpec.configure do |config|
config.include Capybara::DSL
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment