spec/cure_spec.rb in rubicure-0.3.1 vs spec/cure_spec.rb in rubicure-0.3.2
- old
+ new
@@ -82,6 +82,39 @@
it { expect { subject }.to change { girl.name }.from("キュアビート").to("セイレーン") }
end
end
end
+
+ describe ".scarlet" do
+ 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
end