Skip to content

Commit 0a14579

Browse files
committed
spec for passing invalid optios
1 parent 28fbc05 commit 0a14579

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

spec/import_spec.rb

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,14 @@ def upload_file!(name, ext='csv')
161161

162162
end
163163

164+
context "with invalid options" do
165+
let(:options) { {invalid_option: :invalid_value} }
166+
167+
it "should raise TypeError" do
168+
expect { add_author_resource(options) }.to raise_error(ArgumentError)
169+
end
170+
171+
end
164172

165173

166174
end

0 commit comments

Comments
 (0)