spec/models/fe/text_field_spec.rb in fe-0.0.3 vs spec/models/fe/text_field_spec.rb in fe-0.0.4
- old
+ new
@@ -1,17 +1,17 @@
-require 'spec_helper'
+require 'rails_helper'
describe Fe::TextField do
describe '#ptemplate' do
it 'default style' do
text_field = Fe::TextField.new
- text_field.ptemplate.should == "text_field"
+ expect(text_field.ptemplate).to eq("fe/text_field")
end
it 'essay style' do
text_field = Fe::TextField.new
text_field.style = "essay"
- text_field.ptemplate.should == "text_area_field"
+ expect(text_field.ptemplate).to eq("fe/text_area_field")
end
end
end