tddium-preview 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- tddium-preview (0.0.6)
4
+ tddium-preview (0.0.7)
5
5
  highline
6
6
  json
7
7
  tddium_client (>= 0.0.6)
data/lib/tddium.rb CHANGED
@@ -396,10 +396,9 @@ class Tddium < Thor
396
396
  else
397
397
  say all_session_prompt
398
398
  current_sessions["sessions"].each do |session|
399
- session_id = session["id"]
399
+ session_id = session.delete("id")
400
400
  say Text::Status::SESSION_TITLE % session_id
401
- current_test_executions = call_api(:get, "#{Api::Path::SESSIONS}/#{session_id}/#{Api::Path::TEST_EXECUTIONS}")
402
- display_attributes(DisplayedAttributes::TEST_EXECUTION, current_test_executions)
401
+ display_attributes(DisplayedAttributes::TEST_EXECUTION, session)
403
402
  end
404
403
  end
405
404
  rescue TddiumClient::Error::Base
@@ -3,5 +3,5 @@ Copyright (c) 2011 Solano Labs All Rights Reserved
3
3
  =end
4
4
 
5
5
  module TddiumVersion
6
- VERSION = "0.0.7"
6
+ VERSION = "0.0.8"
7
7
  end
data/spec/tddium_spec.rb CHANGED
@@ -878,7 +878,12 @@ describe Tddium do
878
878
  end
879
879
 
880
880
  context "with some sessions" do
881
- let(:session_attributes) { {"id"=>SAMPLE_SESSION_ID, "user_id"=>3} }
881
+ let(:session_attributes) do
882
+ {"id" => SAMPLE_SESSION_ID, "user_id" => 3,
883
+ "report" => SAMPLE_REPORT_URL, "test_execution_stats" => SAMPLE_TEST_EXECUTION_STATS,
884
+ "start_time" => SAMPLE_DATE_TIME, "end_time" => SAMPLE_DATE_TIME}
885
+ end
886
+
882
887
  before do
883
888
  stub_call_api_response(:get, Tddium::Api::Path::SESSIONS, {"sessions"=>[session_attributes]})
884
889
  end
@@ -888,19 +893,10 @@ describe Tddium do
888
893
  run_status(tddium)
889
894
  end
890
895
 
891
- it "should send a 'GET' request to '#{Tddium::Api::Path::TEST_EXECUTIONS}'" do
892
- call_api_should_receive(:method => :get, :path => /#{Tddium::Api::Path::TEST_EXECUTIONS}$/)
893
- run_status(tddium)
894
- end
895
-
896
- context "'GET #{Tddium::Api::Path::TEST_EXECUTIONS}' is successful" do
897
- let(:test_execution_attributes) { {"report" => SAMPLE_REPORT_URL, "test_execution_stats" => SAMPLE_TEST_EXECUTION_STATS, "start_time" => SAMPLE_DATE_TIME, "end_time" => SAMPLE_DATE_TIME} }
898
- before { stub_call_api_response(:get, /#{Tddium::Api::Path::TEST_EXECUTIONS}$/, test_execution_attributes) }
899
- it_should_behave_like "attribute details" do
900
- let(:attributes_to_display) {Tddium::DisplayedAttributes::TEST_EXECUTION}
901
- let(:attributes_to_hide) { [] }
902
- let(:attributes) { test_execution_attributes }
903
- end
896
+ it_should_behave_like "attribute details" do
897
+ let(:attributes_to_display) {Tddium::DisplayedAttributes::TEST_EXECUTION}
898
+ let(:attributes_to_hide) { [] }
899
+ let(:attributes) { session_attributes }
904
900
  end
905
901
  end
906
902
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: tddium-preview
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.7
5
+ version: 0.0.8
6
6
  platform: ruby
7
7
  authors:
8
8
  - Jay Moorthi
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-04-12 00:00:00 -07:00
13
+ date: 2011-04-13 00:00:00 -07:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency