On 20 Aug 2009, at 17:37, Davide Benini wrote:
Then /^I should see a flash player with "([^\"]*)"$/ do |arg1|
response.should have_selector('param', :name => 'FlashVars') do | param|
   param.should =~ /.+#{Regexp.escape("numero-1")}.+/m
 end
end

I have been tweaking the regex a bit (eliminating the .+ and so on) but
the test always fails.

Shouldn't you be doing something with arg1?

Cheers,
-Tom
_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to