Permalink
Browse files

Updated integration to match new model.

  • Loading branch information...
1 parent 4caf140 commit 3dcb191b8b02a1304cc4ac0be08ff7e8e068599f @jagthedrummer jagthedrummer committed May 19, 2010
Showing with 5 additions and 5 deletions.
  1. +5 −5 spec/integrations/get_tokens_spec.rb
@@ -9,11 +9,11 @@
end
it 'should have a collection of tokens' do
- @response.should have_at_least(1).tokens
+ @response.get_tokens_result.should have_at_least(1).tokens
end
it 'should have a token with all of its values set' do
- token = @response.tokens.first
+ token = @response.get_tokens_result.tokens.first
token.token_id.should_not be_empty
token.friendly_name.should_not be_empty
token.token_status.should_not be_empty
@@ -26,14 +26,14 @@
end
it 'should have a token with a token ID' do
- @response.tokens.first.token_id.should_not be_empty
+ @response.get_tokens_result.tokens.first.token_id.should_not be_empty
end
it 'should have a token with a valid token status' do
- @response.tokens.first.token_status.should match(/^(IN)?ACTIVE$/i)
+ @response.get_tokens_result.tokens.first.token_status.should match(/^(IN)?ACTIVE$/i)
end
it 'should have a token with a valid installation date' do
- @response.tokens.first.date_installed.should be_a_kind_of(Time)
+ @response.get_tokens_result.tokens.first.date_installed.should be_a_kind_of(Time)
end
end

0 comments on commit 3dcb191

Please sign in to comment.