Skip to content

Commit

Permalink
Fix flickering spec.
Browse files Browse the repository at this point in the history
  • Loading branch information
monfresh committed Apr 26, 2015
1 parent 9bf8887 commit 2589be8
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions spec/requests/status_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@
expect(json['status']).to eq('ok')
end

it "returns 'updated' attribute set to current time" do
expect(json['updated']).to eq(Time.zone.now.to_i)
it "returns 'updated' attribute set to current time as integer" do
expect(json['updated'].is_a?(Integer)).to eq true
expect(json['updated'].to_s.length).to eq 10
end
end

Expand All @@ -41,8 +42,9 @@
expect(json['dependencies']).to eq(%w(Mandrill Postgres))
end

it "returns 'updated' attribute set to current time" do
expect(json['updated']).to eq(Time.zone.now.to_i)
it "returns 'updated' attribute set to current time as integer" do
expect(json['updated'].is_a?(Integer)).to eq true
expect(json['updated'].to_s.length).to eq 10
end
end
end

0 comments on commit 2589be8

Please sign in to comment.