I have just started using RSpec and I copied the very simple test on the RSpec github repo just to make sure things are working as expected:
require 'spec_helper'
describe 'Home Page' do
it "Welcomes the user" do
visit '/products'
page.should have_content("Welcome")
end
end
The problems begin when I change the string to something like "Olá" or "Caçamba". Any string with a special character. When I do that, I get the following error:
invalid multibyte char (US-ASCII) (SyntaxError)
invalid multibyte char (US-ASCII)
syntax error, unexpected $end, expecting ')'
page.should have_content("Olá")
Any ideas on how to fix it? Maybe some configuration option? Thanks a lot