Sha256: 46b9756307bc6317a353bc88661e41b6dc57f7998fb9c7583642ff78b5266e66
Contents?: true
Size: 688 Bytes
Versions: 1
Compression:
Stored size: 688 Bytes
Contents
require 'spec_helper' module RapGenius describe Line, vcr: { cassette_name: "line-2638695" } do let(:line) { described_class.find(2638695) } subject { line } its(:id) { should eq 2638695 } its(:song) { should be_a Song } its(:lyric) { should eq "Versace, Versace, Medusa head on me like I'm 'luminati" } its("explanations.first") { should include "Versace’s logo is the head of Medusa" } its(:explanations) { should eq line.annotations } context "a non-existent referent ID" do let(:line) { described_class.find("bahahaha") } it "raises an exception" do expect { line }.to raise_exception end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rapgenius-1.0.3 | spec/rapgenius/line_spec.rb |