Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

limit cukes to rspec and rails APIs

  • Loading branch information...
commit 33c14a23fef050d05a43056c19009719cfc78f91 1 parent 59793dc
@dchelimsky dchelimsky authored
Showing with 10 additions and 11 deletions.
  1. +0 −1  features/support/env.rb
  2. +10 −10 features/view_specs/view_spec.feature
View
1  features/support/env.rb
@@ -1,5 +1,4 @@
require 'aruba/cucumber'
-require 'webrat'
module ArubaExt
def run(cmd)
View
20 features/view_specs/view_spec.feature
@@ -16,8 +16,8 @@ Feature: view spec
render
- rendered.should contain("slicer")
- rendered.should contain("dicer")
+ rendered.should =~ /slicer/
+ rendered.should =~ /dicer/
end
end
"""
@@ -42,8 +42,8 @@ Feature: view spec
it "displays both widgets" do
render
- rendered.should contain("slicer")
- rendered.should contain("dicer")
+ rendered.should =~ /slicer/
+ rendered.should =~ /dicer/
end
end
end
@@ -62,7 +62,7 @@ Feature: view spec
render :template => "widgets/widget.html.erb"
- rendered.should contain("slicer")
+ rendered.should =~ /slicer/
end
end
"""
@@ -84,7 +84,7 @@ Feature: view spec
render :partial => "widgets/widget.html.erb", :locals => {:widget => widget}
- rendered.should contain("slicer")
+ rendered.should =~ /slicer/
end
end
"""
@@ -106,7 +106,7 @@ Feature: view spec
render "widgets/widget", :widget => widget
- rendered.should contain("slicer")
+ rendered.should =~ /slicer/
end
end
"""
@@ -127,7 +127,7 @@ Feature: view spec
render :text => "This is directly rendered"
- rendered.should contain("directly rendered")
+ rendered.should =~ /directly rendered/
end
end
"""
@@ -146,7 +146,7 @@ Feature: view spec
page.hide 'status-indicator'
end
- rendered.should contain("Element.hide(\"status-indicator\")")
+ rendered.should =~ /Element.hide\(\"status-indicator\"\);/
end
end
"""
@@ -177,7 +177,7 @@ Feature: view spec
it 'checks for admin access' do
render
- rendered.should contain('Secret admin area')
+ rendered.should =~ /Secret admin area/
end
end
"""
Please sign in to comment.
Something went wrong with that request. Please try again.