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 +1 -1
- data/lib/tddium.rb +2 -3
- data/lib/tddium/version.rb +1 -1
- data/spec/tddium_spec.rb +10 -14
- metadata +2 -2
data/Gemfile.lock
CHANGED
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
|
399
|
+
session_id = session.delete("id")
|
400
400
|
say Text::Status::SESSION_TITLE % session_id
|
401
|
-
|
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
|
data/lib/tddium/version.rb
CHANGED
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)
|
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
|
-
|
892
|
-
|
893
|
-
|
894
|
-
|
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.
|
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-
|
13
|
+
date: 2011-04-13 00:00:00 -07:00
|
14
14
|
default_executable:
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|