spec/parsers/session_parser_spec.rb in triviacrack-0.5.1 vs spec/parsers/session_parser_spec.rb in triviacrack-0.6.0

- old
+ new

@@ -5,10 +5,10 @@ describe ".parse" do subject { TriviaCrack::Parsers::SessionParser.parse raw_data } context 'when given data from the login API' do - let(:raw_data) { SpecData.get "login.json" } + let(:raw_data) { SpecData.get_json "login.json" } it { is_expected.to be_a TriviaCrack::Session } its(:user_id) { is_expected.to be 111 } its(:username) { is_expected.to eq "example" } its(:session_id) { is_expected.to eq "session123" }