Sha256: 4753fa2b23e1dd64aa3d188cded307f0833ce7ee2ae106730599bae6c06256e0

Contents?: true

Size: 888 Bytes

Versions: 16

Compression:

Stored size: 888 Bytes

Contents

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

16 entries across 16 versions & 1 rubygems

Version Path
rubicure-1.0.0.pre4 spec/movie_spec.rb
rubicure-0.4.13 spec/movie_spec.rb
rubicure-1.0.0.pre3 spec/movie_spec.rb
rubicure-1.0.0.pre2 spec/movie_spec.rb
rubicure-1.0.0.pre1 spec/movie_spec.rb
rubicure-0.4.12 spec/movie_spec.rb
rubicure-0.4.11 spec/movie_spec.rb
rubicure-0.4.10 spec/movie_spec.rb
rubicure-0.4.9 spec/movie_spec.rb
rubicure-0.4.8 spec/movie_spec.rb
rubicure-0.4.7 spec/movie_spec.rb
rubicure-0.4.6 spec/movie_spec.rb
rubicure-0.4.5 spec/movie_spec.rb
rubicure-0.4.4 spec/movie_spec.rb
rubicure-0.4.3 spec/movie_spec.rb
rubicure-0.4.2 spec/movie_spec.rb