Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Make clear where the variables come from.

  • Loading branch information...
commit 1383c7b6d51f0f4f7e5ad2162683c868016a8d15 1 parent 72fde21
@rodrigopinto rodrigopinto authored
View
4 spec/hipchat_api_v1_spec.rb
@@ -2,6 +2,10 @@
describe "HipChat (API V1)" do
+ subject { HipChat::Client.new("blah", :api_version => @api_version) }
+
+ let(:room) { subject["Hipchat"] }
+
describe "#history" do
include_context "HipChatV1"
it "is successful without custom options" do
View
4 spec/hipchat_api_v2_spec.rb
@@ -2,6 +2,10 @@
describe "HipChat (API V2)" do
+ subject { HipChat::Client.new("blah", :api_version => @api_version) }
+
+ let(:room) { subject["Hipchat"] }
+
describe "#history" do
include_context "HipChatV2"
it "is successful without custom options" do
View
2  spec/support/shared_contexts_for_hipchat.rb
@@ -79,6 +79,4 @@ def mock_successful_history(options={})
:timezone => options[:timezone],
:format => options[:format]}).to_return(canned_response)
end
- subject { HipChat::Client.new("blah", :api_version => @api_version) }
- let(:room) { subject["Hipchat"] }
end
Please sign in to comment.
Something went wrong with that request. Please try again.