mirror of
https://github.com/discourse/discourse.git
synced 2025-05-21 18:12:32 +08:00
few components with rspec3 syntax
This commit is contained in:
@ -6,7 +6,7 @@ describe DiscourseHub do
|
||||
it 'should return just return the json that the hub returns' do
|
||||
hub_response = {'success' => 'OK', 'latest_version' => '0.8.1', 'critical_updates' => false}
|
||||
RestClient.stubs(:get).returns( hub_response.to_json )
|
||||
DiscourseHub.discourse_version_check.should == hub_response
|
||||
expect(DiscourseHub.discourse_version_check).to eq(hub_response)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user