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

- old
+ new

@@ -14,19 +14,19 @@ %w(email images recipient user).each do |resource| context resource do it "should return a #{resource} object" do test = @mailup.console.send(resource.to_sym) - test.should be_an_instance_of(Object.const_get "MailUp::Console::#{resource.capitalize}") + test.should be_an_instance_of(Object.const_get("MailUp").const_get("Console").const_get("#{resource.capitalize}")) end end end %w(group import list).each do |resource| context resource do it "should return a #{resource} object" do test = @mailup.console.send(resource.to_sym, 1) - test.should be_an_instance_of(Object.const_get "MailUp::Console::#{resource.capitalize}") + test.should be_an_instance_of(Object.const_get("MailUp").const_get("Console").const_get("#{resource.capitalize}")) end end end end \ No newline at end of file