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