Skip to content

Commit

Permalink
fix api tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mose committed Feb 27, 2016
1 parent 9f40b28 commit 11f8e86
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions spec/app/apiv1_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,11 @@
context 'with proper creds' do
before do
current_session.rack_session[:access_token] = 'sada'
allow(Hieraviz::Store)
allow(app.settings.store)
.to receive(:get)
.with('sada', 3600)
.and_return({})
.and_return({'username' => 'toto'})
end

describe 'GET /v1/nodes' do
let(:expected) { ['node1.example.com'] }
before do
Expand Down Expand Up @@ -292,7 +291,6 @@
end
before do
get '/farm/dev'
puts last_response.body
end
it { expect(last_response).to be_ok }
it { expect(JSON.parse(last_response.body)).to eq expected }
Expand Down

0 comments on commit 11f8e86

Please sign in to comment.