Sha256: 8d41c80bc2fbe4bbea35275422704c42862248b8ff260f272c169b87a326894a

Contents?: true

Size: 569 Bytes

Versions: 14

Compression:

Stored size: 569 Bytes

Contents

require "rails_helper"

describe "Capybara DSL Feature Test" do

  it "can call using_wait_time" do
    ret = "ZOMG! using_wait_time was called!"
    Capybara.stub :using_wait_time, ret do
      assert_equal ret, using_wait_time(6)
    end
  end

  it "can call page" do
    ret = "ZOMG! page called current_session!"
    Capybara.stub :current_session, ret do
      assert_equal ret, page
    end
  end

  it "can call using_session" do
    ret = "ZOMG! using_session was called!"
    Capybara.stub :using_session, ret do
      using_session(:name)
    end
  end

end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
minitest-rails-capybara-3.0.1 test/test_dsl.rb
minitest-rails-capybara-3.0.0 test/test_dsl.rb
minitest-rails-capybara-2.1.2 test/test_dsl.rb
minitest-rails-capybara-3.0.0.rc1 test/test_dsl.rb
minitest-rails-capybara-2.1.1 test/test_dsl.rb
minitest-rails-capybara-2.1.0 test/test_dsl.rb
minitest-rails-capybara-2.0.1 test/test_dsl.rb
minitest-rails-capybara-2.0.0 test/test_dsl.rb
minitest-rails-capybara-2.0.0.beta1 test/test_dsl.rb
minitest-rails-capybara-1.0.0 test/test_dsl.rb
minitest-rails-capybara-0.10.0 test/test_dsl.rb
minitest-rails-capybara-0.9.0 test/test_dsl.rb
minitest-rails-capybara-0.5.1 test/test_dsl.rb
minitest-rails-capybara-0.5 test/test_dsl.rb