spec/bullet/ext/string_spec.rb in bullet-5.6.0 vs spec/bullet/ext/string_spec.rb in bullet-5.6.1
- old
+ new
@@ -1,13 +1,13 @@
require 'spec_helper'
describe String do
- context "bullet_class_name" do
- it "should only return class name" do
- expect("Post:1".bullet_class_name).to eq("Post")
+ context 'bullet_class_name' do
+ it 'should only return class name' do
+ expect('Post:1'.bullet_class_name).to eq('Post')
end
- it "should return class name with namespace" do
- expect("Mongoid::Post:1234567890".bullet_class_name).to eq("Mongoid::Post")
+ it 'should return class name with namespace' do
+ expect('Mongoid::Post:1234567890'.bullet_class_name).to eq('Mongoid::Post')
end
end
end