Sha256: 34d46a2c2ddccd4f5c345a831a2241106f789a7d711e8182ace0e186c9c26c9f
Contents?: true
Size: 1.9 KB
Versions: 2
Compression:
Stored size: 1.9 KB
Contents
describe Rubicure::Girl do describe "#name" do let(:girl){ Rubicure::Girl.new( human_name: human_name, precure_name: precure_name, extra_names: extra_names, transform_message: transform_message ) } let(:human_name) { "黄瀬やよい" } let(:precure_name) { "キュアピース" } let(:extra_names) { %w(プリンセスピース ウルトラピース) } let(:transform_message){ <<EOF プリキュアスマイルチャージ! GO! GO! Let's GO ピース! ピカピカピカリンジャンケンポン! キュアピース! EOF } context "when before transform" do it{ expect(girl.name).to eq human_name } end context "when after 1st transform" do before do girl.transform! end it{ expect(girl.name).to eq precure_name } end context "when after 2nd transform" do before do girl.transform! girl.transform! end it{ expect(girl.name).to eq extra_names[0] } end context "when after 3nd transform" do before do girl.transform! girl.transform! girl.transform! end it{ expect(girl.name).to eq extra_names[1] } end context "when after final transform" do before do girl.transform! girl.transform! girl.transform! girl.transform! end # return to human it{ expect(girl.name).to eq human_name } end end describe "#find" do subject{ Rubicure::Girl.find(girl_name) } let(:girl_name){ :peace } it{ should be_an_instance_of Rubicure::Girl } it{ expect(subject.precure_name).to eq "キュアピース" } end describe "#uniq_names" do subject{ Rubicure::Girl.uniq_names } let(:all_stars_count){ Rubicure.core.all_stars.count } it{ expect(subject.count).to eq all_stars_count } end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rubicure-0.0.2 | spec/girl_spec.rb |
rubicure-0.0.1 | spec/girl_spec.rb |