Skip to content

Commit

Permalink
fix specs after update to RSpec 3
Browse files Browse the repository at this point in the history
  • Loading branch information
NARKOZ committed Jun 3, 2014
1 parent 4b26fdd commit 48ba2a1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion spec/gitlab/client/issues_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

it "should return an array of user's issues" do
expect(@issues).to be_an Array
expect(@issues.first.closed).to be_false
expect(@issues.first.closed).to be_falsey
expect(@issues.first.author.name).to eq("John Smith")
end
end
Expand Down
6 changes: 3 additions & 3 deletions spec/gitlab/client/repositories_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,15 @@
describe ".create_tag" do
before do
stub_post("/projects/3/repository/tags", "tag")
@tag = Gitlab.create_tag(3,'v1.0.0','2695effb5807a22ff3d138d593fd856244e155e7')
@tag = Gitlab.create_tag(3, 'v1.0.0', '2695effb5807a22ff3d138d593fd856244e155e7')
end

it "should get the correct resource" do
a_post("/projects/3/repository/tags").should have_been_made
expect(a_post("/projects/3/repository/tags")).to have_been_made
end

it "should return information about a new repository tag" do
@tag.name.should == 'v1.0.0'
expect(@tag.name).to eq("v1.0.0")
end
end

Expand Down
2 changes: 1 addition & 1 deletion spec/gitlab/objectified_hash_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
end

it "should have an alias #to_h" do
expect(@oh.respond_to?(:to_h)).to be_true
expect(@oh.respond_to?(:to_h)).to be_truthy
end
end
end

0 comments on commit 48ba2a1

Please sign in to comment.