lib/rspec/rutl_matchers.rb in rutl-0.6.0 vs lib/rspec/rutl_matchers.rb in rutl-0.8.0
- old
+ new
@@ -1,11 +1,13 @@
-require 'utilities'
+require 'utilities/check_view'
#
# Additional RSpec matchers specific to this framework go here.
#
+module RSpec
+ include CheckView
-# Is it the expected page?
-RSpec::Matchers.define :be_page do |expected|
- match do |actual|
- actual.is_a?(expected) && page?(expected)
+ Matchers.define :be_view do |expected|
+ match do |actual|
+ actual.is_a?(expected) && view?(expected)
+ end
end
end