Skip to content

Commit

Permalink
Check the value of token cf. sisimai/p5-sisimai#421
Browse files Browse the repository at this point in the history
  • Loading branch information
azumakuniyuki committed Dec 22, 2020
1 parent 65de874 commit 7b082e0
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions spec/sisimai/data_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,10 @@
data.each do |e|
subject { e }
it('is Sisimai::Data object') { is_expected.to be_a Sisimai::Data }
example('#token returns String') { expect(e.token).to be_a String }
example('#token returns String') do
expect(e.token).to be_a String
expect(e.token).to be == 'e66edfc23709083576f3b88141473436ce8a7f04'
end
example('#lhost returns String') { expect(e.lhost).to be_a String }
example('#rhost returns String') { expect(e.rhost).to be_a String }
example('#alias returns String') { expect(e.alias).to be_a String }
Expand Down Expand Up @@ -149,7 +152,10 @@
data.each do |e|
subject { e }
it('is Sisimai::Data object') { is_expected.to be_a Sisimai::Data }
example('#token returns String') { expect(e.token).to be_a String }
example('#token returns String') do
expect(e.token).to be_a String
expect(e.token).to be == 'cf02004cf5c8868f0f924eecefdb600599f238a6'
end
example('#lhost returns String') { expect(e.lhost).to be_a String }
example '#lhost does not include " "' do
expect(e.lhost).not_to match(/[ ]/)
Expand Down

0 comments on commit 7b082e0

Please sign in to comment.