spec/mailup/stats/base_spec.rb in mailup-1.1.0 vs spec/mailup/stats/base_spec.rb in mailup-1.2.0

- old
+ new

@@ -13,10 +13,10 @@ %w(message recipient).each do |resource| context resource do it "should return a #{resource} object" do test = @mailup.stats.send(resource.to_sym, 1) - test.should be_an_instance_of(Object.const_get "MailUp::Stats::#{resource.capitalize}") + test.should be_an_instance_of(Object.const_get("MailUp").const_get("Stats").const_get("#{resource.capitalize}")) end end end end \ No newline at end of file