diff options
| author | mokha <mokha@cisco.com> | 2018-03-09 19:41:29 -0700 |
|---|---|---|
| committer | mokha <mokha@cisco.com> | 2018-03-09 19:41:29 -0700 |
| commit | 90de2a9f107c26dc913eef40e4ccf48a40ca1581 (patch) | |
| tree | d14cf67a7e2f55806bbe22b84fb9e112f7352f44 | |
| parent | 14312186ec8589d9a2abde102b256a45f12e5f4c (diff) | |
fix broken spec.
| -rw-r--r-- | spec/saml/kit/cli/commands/decode_spec.rb | 2 | ||||
| -rw-r--r-- | spec/support/user.rb | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/spec/saml/kit/cli/commands/decode_spec.rb b/spec/saml/kit/cli/commands/decode_spec.rb index b188785..d672285 100644 --- a/spec/saml/kit/cli/commands/decode_spec.rb +++ b/spec/saml/kit/cli/commands/decode_spec.rb @@ -57,7 +57,7 @@ RSpec.describe Saml::Kit::Cli::Commands::Decode do specify { expect(status).to be_success } specify { expect(output).to include(document.to_xml(pretty: true)) } specify { expect(output).to include("Decoded #{document.send(:name)}") } - specify { expect(output).to include(user.name_id_for) } + specify { expect(output).to include(user.id) } end context 'when the document is a LogoutResponse' do diff --git a/spec/support/user.rb b/spec/support/user.rb index d72b561..9e3fe8e 100644 --- a/spec/support/user.rb +++ b/spec/support/user.rb @@ -1,9 +1,11 @@ class User + attr_reader :id + def initialize(id) @id = id end def name_id_for(_format) - @id + id end end |
