Hi I’m using watir with rspec and am running into problems with the following chunk of code:
I cant understand what Im doing wrong. The exact error I get is “syntax error, unexpected $end, expecting keyword_end
@b.text.include? “Ark © 1”
describe "Copyright statement" do
it "should exist" do
@b.text.include? "Ark © 1"
end
end
Any help would be appreciated. Thanks.
I found a solution on the web while searching for the error “invalid multibyte char (US-ASCII)”
Adding this line to the top helps with the copyright statement!
Its just a simple comment at the top of the file, but it solves the problem with the copyright character and Rspec/Ruby 1.9.
Thank you everyone for all your help and support. I really do appreciate it!