Permalink
Browse files

Make clear where the variables come from.

  • Loading branch information...
rodrigopinto committed Jan 13, 2014
1 parent 72fde21 commit 1383c7b6d51f0f4f7e5ad2162683c868016a8d15
Showing with 8 additions and 2 deletions.
  1. +4 −0 spec/hipchat_api_v1_spec.rb
  2. +4 −0 spec/hipchat_api_v2_spec.rb
  3. +0 −2 spec/support/shared_contexts_for_hipchat.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
@@ -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
@@ -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

0 comments on commit 1383c7b

Please sign in to comment.