Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Don't use SSL in tests

  • Loading branch information...
commit 11487ed9c22cf3c6a38fb8fa408cad8a27f8df3e 1 parent 7f42e66
@iain authored
Showing with 5 additions and 3 deletions.
  1. +5 −3 spec/camp_spec.rb
View
8 spec/camp_spec.rb
@@ -9,18 +9,20 @@
room_id = 1234
account = "abcd"
- stub_request(:post, "https://#{token}:X@#{account}.campfirenow.com/room/#{room_id}/speak.json").
+ stub_request(:post, "http://#{token}:X@#{account}.campfirenow.com/room/#{room_id}/speak.json").
with(:body => "{\"message\":{\"body\":\"Ik ben een gem aan het maken\"}}",
:headers => {'Accept'=>'*/*', 'Content-Type'=>'application/json', 'User-Agent'=>'Ruby'}).
- to_return(:status => 200, :body => "", :headers => {})
+ to_return(:status => 200, :body => "", :headers => {})
subject.configure do |config|
config.account = account
config.room_id = room_id
config.token = token
- config.ssl = true
+ config.ssl = false
end
+
subject.speak "Ik ben een gem aan het maken"
+
end
before do
Please sign in to comment.
Something went wrong with that request. Please try again.