spec/lib/mabbre/mixin_spec.rb in mabbre-0.0.3 vs spec/lib/mabbre/mixin_spec.rb in mabbre-1.0.0
- old
+ new
@@ -4,13 +4,13 @@
describe MAbbre::Mixin do
describe "#allow_abbreviated" do
it "is added after extending #{described_class}" do
mod = ::Module.new
- expect(mod.private_methods.map(&:to_sym)).not_to include(:allow_abbreviated)
+ expect(mod.private_methods).not_to include(:allow_abbreviated)
mod.module_eval { extend MAbbre::Mixin }
- expect(mod.private_methods.map(&:to_sym)).to include(:allow_abbreviated)
+ expect(mod.private_methods).to include(:allow_abbreviated)
end
context "block given" do
it "returns a set with the methods that can be abbreviated" do
mod = ::Module.new.module_eval do
@@ -123,10 +123,10 @@
context "base module" do
subject { base_module }
it "has custom extensions as ancestors" do
- expect(subject.singleton_methods.map(&:to_sym)).to include(:base_extension_meth, :sub_extension_meth)
+ expect(subject.singleton_methods).to include(:base_extension_meth, :sub_extension_meth)
end
it "tracks methods that can be abbreviated" do
expect(subject.tracked_methods(MAbbre)).to match_array([:meth_01_extra, :meth_02_extra, :meth_03_extra])
end