Sha256: cf88e4b5e06a444fde7cd55218e74a7c055c27a98e8f43fa5ce25193bf5fff2f

Contents?: true

Size: 832 Bytes

Versions: 4

Compression:

Stored size: 832 Bytes

Contents

describe Rubicure::Movie do
  let(:movie_names) {
    [
        :dx1,
        :dx2,
        :dx3,
        :ns1,
        :ns2,
        :ns3,
    ]
  }

  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 }
    end
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rubicure-0.0.7 spec/movie_spec.rb
rubicure-0.0.6 spec/movie_spec.rb
rubicure-0.0.5 spec/movie_spec.rb
rubicure-0.0.4 spec/movie_spec.rb