class Object

Constants

RWEBSPEC_VERSION

# From RWebSpec 6 fully supports RSpec 3 # # For non-rwebspec project, need to add to the help to avoid deprecation warning if ::RSpec::Version::STRING && ::RSpec::Version::STRING =~ /^3/

RSpec.configure do |config|
  config.expect_with :rspec do |c|
    c.syntax = :should
  end
end

end

end

Public Instance Methods

contain(expected)
Alias for: contains_text?
contain?(expected)
Alias for: contains_text?
contains(expected)
Alias for: contains_text?
contains?(expected)
Alias for: contains_text?
contains_text?(expected) click to toggle source

This method is the one you use with should/should_not

# File lib/rwebspec-common/matchers/contains_text.rb, line 37
def contains_text?(expected)
  ContainsText.new(expected)
end
Also aliased as: contains?, contains, contain?, contain