spec/findable/query/namespace_spec.rb in findable-0.1.4 vs spec/findable/query/namespace_spec.rb in findable-0.1.5

- old
+ new

@@ -2,11 +2,11 @@ describe Findable::Query::Namespace do include_context "TemporaryModel" before do - QueryEx = Class.new + QueryEx = Struct.new(:model) QueryEx.include Findable::Query::Namespace end after { Object.send(:remove_const, "QueryEx") } @@ -18,13 +18,9 @@ namespace::KEY_NAMES.each do |name| expect(query.public_send("#{name}_key")).to be_kind_of(String) expect(query.public_send("#{name}_key")).to start_with(namespace::PREFIX) end } - end - - describe "#initialize" do - it { expect(query.instance_eval { @_model }).to eq(model) } end describe "#thread_key" do it { expect(query.thread_key).to be_kind_of(String) } it { expect(query.thread_key).to start_with(namespace::PREFIX) }