Permalink
Browse files

Adds additional edge cases to be_processed_in spec #27

  • Loading branch information...
1 parent 0678e48 commit 8174cf9bdb93a52a050943afdbfaca9f18bf89a7 Phil Ostler committed Dec 27, 2013
Showing with 12 additions and 0 deletions.
  1. +12 −0 spec/rspec/sidekiq/matchers/be_processed_in_spec.rb
@@ -58,11 +58,23 @@
end
end
+ context "when expected is a symbol and actual is string" do
+ it "returns true" do
+ expect(symbol_subject.matches? string_worker).to be_true
+ end
+ end
+
context "when expected is a string" do
it "returns true" do
expect(string_subject.matches? string_worker).to be_true
end
end
+
+ context "when expected is a string and actual is symbol" do
+ it "returns true" do
+ expect(string_subject.matches? symbol_worker).to be_true
+ end
+ end
end
context "when condition does not match" do

0 comments on commit 8174cf9

Please sign in to comment.