Sha256: b06e1475bcc569624e96eb8ba8e998224406e6264ebade77b10c6279e51393a5

Contents?: true

Size: 1001 Bytes

Versions: 12

Compression:

Stored size: 1001 Bytes

Contents

describe Rubicure::Movie do
  let(:movie_names) do
    [
      :dx1,
      :dx2,
      :dx3,
      :ns1,
      :ns2,
      :ns3,
      :sc,
      :stmm,
      :dream_stars,
      :super_stars,
      :memories,
      :miracle_universe,
      :miracle_leap,
      :f,
    ]
  end

  describe "#names" do
    subject { Rubicure::Movie.names }

    it { should include(*movie_names) }
  end

  describe "#uniq_names" do
    subject { Rubicure::Movie.uniq_names }

    it { should include(*movie_names) }
    its(:count) { should == movie_names.count }
  end

  describe "#find" do
    subject { Rubicure::Movie.find(movie_name) }

    context "when exists" do
      let(:movie_name) { :dx }

      its(:title) { should == "映画 プリキュアオールスターズDX みんなともだちっ☆奇跡の全員大集合!" }
    end

    context "when not exists" do
      let(:movie_name) { :ashita_no_nadja }

      it { expect { subject }.to raise_error Rubicure::UnknownMovieError }
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
rubicure-4.0.1 spec/rubicure/movie_spec.rb
rubicure-4.0.0 spec/rubicure/movie_spec.rb
rubicure-3.3.4 spec/rubicure/movie_spec.rb
rubicure-3.3.3 spec/rubicure/movie_spec.rb
rubicure-3.3.2 spec/rubicure/movie_spec.rb
rubicure-3.3.1 spec/rubicure/movie_spec.rb
rubicure-3.3.0 spec/rubicure/movie_spec.rb
rubicure-3.3.0.rc2 spec/rubicure/movie_spec.rb
rubicure-3.3.0.rc1 spec/rubicure/movie_spec.rb
rubicure-3.2.6 spec/rubicure/movie_spec.rb
rubicure-3.2.5 spec/rubicure/movie_spec.rb
rubicure-3.2.4 spec/rubicure/movie_spec.rb