Skip to content

Commit

Permalink
Merge pull request #31 from terrellt/feature/RSpec3
Browse files Browse the repository at this point in the history
Changes to support RSpec 3
cbeer committed Jun 4, 2014
2 parents f02a3f1 + 0ff3033 commit 3674916
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion spec/lib/ldp/client_spec.rb
Original file line number Diff line number Diff line change
@@ -66,7 +66,7 @@
resp = subject.get "a_resource"
expect(resp).to be_a_kind_of(Ldp::Response)
expect(resp.body).to eq(simple_graph)
expect(resp.resource?).to be_true
expect(resp.resource?).to be_truthy
end

it "should accept a block to change the HTTP request" do
4 changes: 2 additions & 2 deletions spec/lib/ldp/orm/orm_spec.rb
Original file line number Diff line number Diff line change
@@ -53,13 +53,13 @@

describe "#save" do
it "should update the resource from the graph" do
expect(subject.save).to be_true
expect(subject.save).to be_truthy
end

it "should return false if the response was not successful" do
conn_stubs.instance_variable_get(:@stack)[:put] = [] # erases the stubs for :put
conn_stubs.put('/a_resource') {[412, nil, 'There was an error']}
expect(subject.save).to be_false
expect(subject.save).to be_falsey
end
end

2 changes: 1 addition & 1 deletion spec/lib/ldp/response_spec.rb
Original file line number Diff line number Diff line change
@@ -50,7 +50,7 @@
"<#{Ldp.resource}>;rel=\"type\""
]
})
expect(Ldp::Response.resource? mock_response).to be_true
expect(Ldp::Response.resource? mock_response).to be_truthy
end
end

0 comments on commit 3674916

Please sign in to comment.