Sha256: 14787cef3e3d66a71c16596acac878032153fd8bda871914d77c40920d563663

Contents?: true

Size: 735 Bytes

Versions: 38

Compression:

Stored size: 735 Bytes

Contents

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

    let(:girl) { Cure.beat }

    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.beat
      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

38 entries across 38 versions & 1 rubygems

Version Path
rubicure-3.3.3 spec/rubicure/cure_beat_spec.rb
rubicure-3.3.2 spec/rubicure/cure_beat_spec.rb
rubicure-3.3.1 spec/rubicure/cure_beat_spec.rb
rubicure-3.3.0 spec/rubicure/cure_beat_spec.rb
rubicure-3.3.0.rc2 spec/rubicure/cure_beat_spec.rb
rubicure-3.3.0.rc1 spec/rubicure/cure_beat_spec.rb
rubicure-3.2.6 spec/rubicure/cure_beat_spec.rb
rubicure-3.2.5 spec/rubicure/cure_beat_spec.rb
rubicure-3.2.4 spec/rubicure/cure_beat_spec.rb
rubicure-3.2.3 spec/rubicure/cure_beat_spec.rb
rubicure-3.2.2 spec/rubicure/cure_beat_spec.rb
rubicure-3.2.1 spec/rubicure/cure_beat_spec.rb
rubicure-3.2.0 spec/rubicure/cure_beat_spec.rb
rubicure-3.2.0.rc1 spec/rubicure/cure_beat_spec.rb
rubicure-3.1.5 spec/rubicure/cure_beat_spec.rb
rubicure-3.1.4 spec/rubicure/cure_beat_spec.rb
rubicure-3.1.3 spec/rubicure/cure_beat_spec.rb
rubicure-3.1.2 spec/rubicure/cure_beat_spec.rb
rubicure-3.1.1 spec/rubicure/cure_beat_spec.rb
rubicure-3.1.0 spec/rubicure/cure_beat_spec.rb