Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes for tests to run under rspec3 #16

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion spec/builder_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ def encode_as_json

describe "attributes!" do
it "should allow create object with attributes of another object" do
object = stub(:id => 1, :name => 'foo')
object = double(:id => 1, :name => 'foo')
json.attributes!(object, :id, :name)
MultiJson.load(json.compile!).should == {'id' => 1, 'name' => 'foo'}
end
Expand Down
4 changes: 2 additions & 2 deletions spec/jsonify_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require 'spec_helper'
describe Jsonify do
it('should be true') {true.should be_true}
end
it('should be true') {expect(true).to be true}
end
3 changes: 2 additions & 1 deletion spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@
require 'jsonify/tilt'

RSpec.configure do |config|
end
config.expect_with(:rspec) { |c| c.syntax = [:should, :expect] }
end