Sha256: b05d7595c27a805ea52fd509aeeb05f72fc8d521fd6cde2788585b8bdab9832a

Contents?: true

Size: 237 Bytes

Versions: 17

Compression:

Stored size: 237 Bytes

Contents

Capybara::SpecHelper.spec "#evaluate_script", :requires => [:js] do
  it "should evaluate the given script and return whatever it produces" do
    @session.visit('/with_js')
    expect(@session.evaluate_script("1+3")).to eq(4)
  end
end

Version data entries

17 entries across 17 versions & 4 rubygems

Version Path
tinymce-rails-7.1.2 vendor/bundle/ruby/3.3.0/gems/capybara-2.4.4/lib/capybara/spec/session/evaluate_script_spec.rb
capybara-2.6.2 lib/capybara/spec/session/evaluate_script_spec.rb
capybara-2.6.1 lib/capybara/spec/session/evaluate_script_spec.rb
capybara-2.6.0 lib/capybara/spec/session/evaluate_script_spec.rb
angular-rails4-templates-0.4.1 vendor/ruby/2.1.0/gems/capybara-2.4.4/lib/capybara/spec/session/evaluate_script_spec.rb
angular-rails4-templates-0.4.0 vendor/ruby/2.1.0/gems/capybara-2.4.4/lib/capybara/spec/session/evaluate_script_spec.rb
angular-rails4-templates-0.3.0 vendor/ruby/2.1.0/gems/capybara-2.4.4/lib/capybara/spec/session/evaluate_script_spec.rb
capybara-2.5.0 lib/capybara/spec/session/evaluate_script_spec.rb
solidus_backend-1.0.0.pre3 vendor/bundle/gems/capybara-2.4.4/lib/capybara/spec/session/evaluate_script_spec.rb
solidus_backend-1.0.0.pre2 vendor/bundle/gems/capybara-2.4.4/lib/capybara/spec/session/evaluate_script_spec.rb
solidus_backend-1.0.0.pre vendor/bundle/gems/capybara-2.4.4/lib/capybara/spec/session/evaluate_script_spec.rb
capybara-2.4.4 lib/capybara/spec/session/evaluate_script_spec.rb
capybara-2.4.3 lib/capybara/spec/session/evaluate_script_spec.rb
capybara-2.4.2 lib/capybara/spec/session/evaluate_script_spec.rb
capybara-2.4.1 lib/capybara/spec/session/evaluate_script_spec.rb
capybara-2.4.0 lib/capybara/spec/session/evaluate_script_spec.rb
capybara-2.3.0 lib/capybara/spec/session/evaluate_script_spec.rb