Sha256: 121904e629dd5b97380188daf97f642801fe57d98c2c3d291dd9148b946be119

Contents?: true

Size: 759 Bytes

Versions: 41

Compression:

Stored size: 759 Bytes

Contents

describe "Cure.scarlet" do # rubocop:disable RSpec/DescribeClass
  describe "!" do
    subject { !Cure.scarlet }

    let(:girl) { Cure.scarlet }

    after do
      girl.rollback
      girl.humanize!
    end

    context "called once" do
      it { expect { subject }.to change { girl.name }.from("紅城トワ").to("トワイライト") }
    end

    context "called twice" do
      before do
        !Cure.scarlet
      end

      it { expect { subject }.to change { girl.name }.from("トワイライト").to("紅城トワ") }
    end

    context "after transform" do
      before do
        girl.transform!
      end

      it { expect { subject }.to change { girl.name }.from("キュアスカーレット").to("トワイライト") }
    end
  end
end

Version data entries

41 entries across 41 versions & 1 rubygems

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