Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
davidjairala committed Aug 1, 2017
1 parent c1e7a77 commit 9e74705
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/models/test_user_spec.rb
Expand Up @@ -40,7 +40,7 @@ def ord_to_str(ord)
expect{ u.save }.to_not raise_error
expect(u).to be_persisted
expect(u.reload.name.strip).to eql "Peter Perez"
expect(u.reload.cart).to eql "some binary data #{ord_to_str(65554)}".b
expect(u.reload.cart).to eql "some binary data #{ord_to_str(65554)}".force_encoding("ASCII-8BIT")
end

it "doesn't mess up with valid language specific chars" do
Expand Down

0 comments on commit 9e74705

Please sign in to comment.