spec/ticketmaster-exception_spec.rb in ticketmaster-0.5.6 vs spec/ticketmaster-exception_spec.rb in ticketmaster-0.6.6
- old
+ new
@@ -11,9 +11,16 @@
end
before(:each) do
@ticketmaster = TicketMaster.new(:tester, {})
end
+
+ describe "TicketMaster::Provider::Base" do
+ it "valid? method raises correct exception" do
+ msg = "TicketMaster::Provider::Base::valid? method must be implemented by the provider"
+ lambda { @ticketmaster.valid? }.should raise_error(@exception, msg)
+ end
+ end
describe "TicketMaster::Provider::Helper" do
it "easy_finder method raises correct exception" do
msg = "TicketMaster::Provider::Helper::easy_finder method must be implemented by the provider"
lambda { @ticketmaster.easy_finder(1, :test, {}) }.should raise_error(@exception, msg)