Sha256: b3986ea92a2843088f276f77de6098670e134e59a71da35f0be47425a0c1b266

Contents?: true

Size: 1.08 KB

Versions: 3

Compression:

Stored size: 1.08 KB

Contents

describe Rubicure::Core do
  let(:instance){ Rubicure::Core.instance }

  describe "#now" do
    subject{ instance.now }

    context "when on air" do
      before do
        time_travel_to "2013-01-01"
      end

      it{ expect(subject.title).to eq "スマイルプリキュア!" }
    end

    context "when not on air" do
      before do
        time_travel_to "2013-02-01"
      end

      it{ expect{ subject.title }.to raise_error }
    end
  end

  it "output all precure methods", category: :verbose do
    Rubicure::Series.names.each do |series_name|
      puts "[#{series_name}] ===================="
      series = Rubicure::Series.find(series_name)
      puts <<EOS
title:     #{series.title}
broadcast: #{series.started_date} - #{series.ended_date}
girls:     #{series.girls.count}
EOS

      series.girls.each do |girl|
        puts <<EOS
------------------------
  human_name:   #{girl.human_name}
  precure_name: #{girl.precure_name}
  extra_names:  #{girl.extra_names}
  state_names:  #{girl.state_names}
  transform_message:
#{girl.transform_message}
EOS
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rubicure-0.0.3 spec/core_spec.rb
rubicure-0.0.2 spec/core_spec.rb
rubicure-0.0.1 spec/core_spec.rb