Sha256: af7f0fb972290104ffd3961220b6878e404b6ca293c56a64fede9de84e9bc14e

Contents?: true

Size: 908 Bytes

Versions: 8

Compression:

Stored size: 908 Bytes

Contents

describe Rubicure::Movie do
  let(:movie_names) do
    [
      :dx1,
      :dx2,
      :dx3,
      :ns1,
      :ns2,
      :ns3,
      :sc,
      :stmm,
      :dream_stars,
    ]
  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

8 entries across 8 versions & 1 rubygems

Version Path
rubicure-1.0.7 spec/rubicure/movie_spec.rb
rubicure-1.0.6 spec/rubicure/movie_spec.rb
rubicure-1.0.5 spec/rubicure/movie_spec.rb
rubicure-1.0.4 spec/movie_spec.rb
rubicure-1.0.3 spec/movie_spec.rb
rubicure-1.0.2 spec/movie_spec.rb
rubicure-1.0.1 spec/movie_spec.rb
rubicure-1.0.0 spec/movie_spec.rb