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

Changes to support RSpec 3 #31

Merged
merged 1 commit into from
Jun 4, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion spec/lib/ldp/client_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions spec/lib/ldp/orm/orm_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion spec/lib/ldp/response_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down