के बारे में आरएसपीसी त्रुटि माइकल हार्टल के ट्यूटोरियल के माध्यम से प्राप्त करने की कोशिश कर रहा है; यहां मुद्दों का सामना करना पड़ रहा है।सेलेनियम-वेबड्राइवर
मैंने अभी एप्लिकेशन बनाया है।
यहाँ है कि मैं क्या जब मैं चलाने के 'बंडल कार्यकारी rspec कल्पना/अनुरोध/static_pages_spec.rb'
Corey-M-Kimball:sample_app coreymkimball$ bundle exec rspec spec/requests/static_pages_spec.rb
/Users/coreymkimball/.rvm/gems/[email protected]_rails_4_0/gems/selenium-webdriver-2.0.0/lib/selenium/webdriver/common/zipper.rb:1:in `require': cannot load such file -- zip/zip (LoadError)
from /Users/coreymkimball/.rvm/gems/[email protected]_rails_4_0/gems/selenium-webdriver-2.0.0/lib/selenium/webdriver/common/zipper.rb:1:in `<top (required)>'
from /Users/coreymkimball/.rvm/gems/[email protected]_rails_4_0/gems/selenium-webdriver-2.0.0/lib/selenium/webdriver/common.rb:9:in `require'
from /Users/coreymkimball/.rvm/gems/[email protected]_rails_4_0/gems/selenium-webdriver-2.0.0/lib/selenium/webdriver/common.rb:9:in `<top (required)>'
from /Users/coreymkimball/.rvm/gems/[email protected]_rails_4_0/gems/selenium-webdriver-2.0.0/lib/selenium/webdriver.rb:29:in `require'
from /Users/coreymkimball/.rvm/gems/[email protected]_rails_4_0/gems/selenium-webdriver-2.0.0/lib/selenium/webdriver.rb:29:in `<top (required)>'
from /Users/coreymkimball/.rvm/gems/[email protected]_rails_4_0/gems/selenium-webdriver-2.0.0/lib/selenium-webdriver.rb:1:in `require'
from /Users/coreymkimball/.rvm/gems/[email protected]_rails_4_0/gems/selenium-webdriver-2.0.0/lib/selenium-webdriver.rb:1:in `<top (required)>'
from /Users/coreymkimball/.rvm/gems/[email protected]/gems/bundler-1.3.5/lib/bundler/runtime.rb:72:in `require'
from /Users/coreymkimball/.rvm/gems/[email protected]/gems/bundler-1.3.5/lib/bundler/runtime.rb:72:in `block (2 levels) in require'
from /Users/coreymkimball/.rvm/gems/[email protected]/gems/bundler-1.3.5/lib/bundler/runtime.rb:70:in `each'
from /Users/coreymkimball/.rvm/gems/[email protected]/gems/bundler-1.3.5/lib/bundler/runtime.rb:70:in `block in require'
from /Users/coreymkimball/.rvm/gems/[email protected]/gems/bundler-1.3.5/lib/bundler/runtime.rb:59:in `each'
from /Users/coreymkimball/.rvm/gems/[email protected]/gems/bundler-1.3.5/lib/bundler/runtime.rb:59:in `require'
from /Users/coreymkimball/.rvm/gems/[email protected]/gems/bundler-1.3.5/lib/bundler.rb:132:in `require'
from /Users/coreymkimball/Canvi/sample_app/config/application.rb:12:in `<top (required)>'
from /Users/coreymkimball/Canvi/sample_app/config/environment.rb:2:in `require'
from /Users/coreymkimball/Canvi/sample_app/config/environment.rb:2:in `<top (required)>'
from /Users/coreymkimball/Canvi/sample_app/spec/spec_helper.rb:3:in `require'
from /Users/coreymkimball/Canvi/sample_app/spec/spec_helper.rb:3:in `<top (required)>'
from /Users/coreymkimball/Canvi/sample_app/spec/requests/static_pages_spec.rb:1:in `require'
from /Users/coreymkimball/Canvi/sample_app/spec/requests/static_pages_spec.rb:1:in `<top (required)>'
from /Users/coreymkimball/.rvm/gems/[email protected]_rails_4_0/gems/rspec-core-2.13.1/lib/rspec/core/configuration.rb:819:in `load'
from /Users/coreymkimball/.rvm/gems/[email protected]_rails_4_0/gems/rspec-core-2.13.1/lib/rspec/core/configuration.rb:819:in `block in load_spec_files'
from /Users/coreymkimball/.rvm/gems/[email protected]_rails_4_0/gems/rspec-core-2.13.1/lib/rspec/core/configuration.rb:819:in `each'
from /Users/coreymkimball/.rvm/gems/[email protected]_rails_4_0/gems/rspec-core-2.13.1/lib/rspec/core/configuration.rb:819:in `load_spec_files'
from /Users/coreymkimball/.rvm/gems/[email protected]_rails_4_0/gems/rspec-core-2.13.1/lib/rspec/core/command_line.rb:22:in `run'
from /Users/coreymkimball/.rvm/gems/[email protected]_rails_4_0/gems/rspec-core-2.13.1/lib/rspec/core/runner.rb:80:in `run'
from /Users/coreymkimball/.rvm/gems/[email protected]_rails_4_0/gems/rspec-core-2.13.1/lib/rspec/core/runner.rb:17:in `block in autorun'
मैं समझ नहीं कि समस्या क्या है के साथ प्रस्तुत कर रहा हूँ।
युक्ति:
require 'spec_helper'
describe "Static pages" do
describe "Home page" do
it "should have the content 'Sample App'" do
visit '/static_pages/home'
expect(page).to have_content('Sample App')
end
end
end
धन्यवाद।
क्या आप जिस स्पेक का उपयोग करने का प्रयास कर रहे हैं उसका कोड दे सकते हैं? – Almaron
इसे अद्यतन और शामिल किया गया है। – user2698988