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

- old
+ new

@@ -5,11 +5,11 @@ describe ".parse" do subject { TriviaCrack::Parsers::ProfileParser.parse raw_data } context 'when given data from the profile API' do - let(:raw_data) { SpecData.get "profile.json" } + let(:raw_data) { SpecData.get_json "profile.json" } it { is_expected.to be_a TriviaCrack::Profile } its(:id) { is_expected.to be 111 } its(:is_friend) { is_expected.to be false } its(:is_blocked) { is_expected.to be false } @@ -30,10 +30,10 @@ its(:my_wins_vs_user) { is_expected.to be 0 } its(:my_losses_vs_user) { is_expected.to be 1 } end context 'when given data from the current user profile API' do - let(:raw_data) { SpecData.get "my_profile.json" } + let(:raw_data) { SpecData.get_json "my_profile.json" } it { is_expected.to be_a TriviaCrack::Profile } its(:id) { is_expected.to be 222 } its(:is_friend) { is_expected.to be false } its(:is_blocked) { is_expected.to be false }