Feature: www.bbc.co.uk-russian
It should be up
Scenario: Visiting home page
When I go to "http://www.bbc.co.uk/russian"
Then the request should succeed
And I should see "Learning English"
And I should see "Ресурсы Би-би-си"
run feature:
cucumber-nagios features/www.bbc.co.uk-russian/bidding.feature --pretty
Feature: www.bbc.co.uk-russian
It should be up
Scenario: Visiting home page # features/www.bbc.co.uk-russian/bidding.feature:4
When I go to "http://www.bbc.co.uk/russian" # features/steps/http_steps.rb:11
Then the request should succeed # features/steps/http_steps.rb:64
And I should see "Learning English" # features/steps/http_steps.rb:52
And I should see "Ресурсы Би-би-си" # features/steps/http_steps.rb:52
incompatible encoding regexp match (UTF-8 regexp with ASCII-8BIT string) (Encoding::CompatibilityError)
./features/steps/http_steps.rb:53:in `/^I should see "(.*)"$/'
features/www.bbc.co.uk-russian/bidding.feature:8:in `And I should see "Ресурсы Би-би-си"'
Failing Scenarios:
cucumber features/www.bbc.co.uk-russian/bidding.feature:4 # Scenario: Visiting home page
1 scenario (1 failed)
4 steps (1 failed, 3 passed)
0m0.919s
It seems that problem is in webrat, temporary workaround for this is in : features/steps/http_steps.rb
Then /^I should see "(.*)"$/ do |text|
response.body.to_s.force_encoding('utf-8').should =~ /#{text}/m
end
to reproduce:
create project:
mcedit
features/www.bbc.co.uk-russian/bidding.feature
:run feature:
cucumber-nagios features/www.bbc.co.uk-russian/bidding.feature --pretty
It seems that problem is in webrat, temporary workaround for this is in : features/steps/http_steps.rb
but it's not good way