Sha256: bcfbd97e707dd0155c88a102f9eb14b9be4dbdd98b28000c742aada42e325965

Contents?: true

Size: 833 Bytes

Versions: 41

Compression:

Stored size: 833 Bytes

Contents

describe "Cure.cosmo" do # rubocop:disable RSpec/DescribeClass
  let(:girl) { Cure.cosmo }

  after do
    girl.rollback
  end

  describe "#transform!" do
    context "with :rainbow_perfume" do
      subject { girl.transform!(:rainbow_perfume) }

      it "change to either マオ, ブルーキャット or バケニャーン" do
        subject

        expect(girl.name).to match(/^(マオ|ブルーキャット|バケニャーン)$/)
      end
    end

    context "without arg" do
      subject { girl.transform! }

      it { expect { subject }.to change { girl.name }.from("ユニ").to("キュアコスモ") }
    end
  end

  describe "#rollback" do
    subject { girl.rollback }

    it "rollback to ユニ" do
      girl.transform!(:rainbow_perfume)

      subject

      expect(girl.name).to eq "ユニ"
    end
  end
end

Version data entries

41 entries across 41 versions & 1 rubygems

Version Path
rubicure-4.0.1 spec/rubicure/cure_cosmo_spec.rb
rubicure-4.0.0 spec/rubicure/cure_cosmo_spec.rb
rubicure-3.3.4 spec/rubicure/cure_cosmo_spec.rb
rubicure-3.3.3 spec/rubicure/cure_cosmo_spec.rb
rubicure-3.3.2 spec/rubicure/cure_cosmo_spec.rb
rubicure-3.3.1 spec/rubicure/cure_cosmo_spec.rb
rubicure-3.3.0 spec/rubicure/cure_cosmo_spec.rb
rubicure-3.3.0.rc2 spec/rubicure/cure_cosmo_spec.rb
rubicure-3.3.0.rc1 spec/rubicure/cure_cosmo_spec.rb
rubicure-3.2.6 spec/rubicure/cure_cosmo_spec.rb
rubicure-3.2.5 spec/rubicure/cure_cosmo_spec.rb
rubicure-3.2.4 spec/rubicure/cure_cosmo_spec.rb
rubicure-3.2.3 spec/rubicure/cure_cosmo_spec.rb
rubicure-3.2.2 spec/rubicure/cure_cosmo_spec.rb
rubicure-3.2.1 spec/rubicure/cure_cosmo_spec.rb
rubicure-3.2.0 spec/rubicure/cure_cosmo_spec.rb
rubicure-3.2.0.rc1 spec/rubicure/cure_cosmo_spec.rb
rubicure-3.1.5 spec/rubicure/cure_cosmo_spec.rb
rubicure-3.1.4 spec/rubicure/cure_cosmo_spec.rb
rubicure-3.1.3 spec/rubicure/cure_cosmo_spec.rb