spec/unit/spec_helper.rb in intercom-0.0.5 vs spec/unit/spec_helper.rb in intercom-0.0.6

- old
+ new

@@ -85,9 +85,13 @@ "previous_page" => previous_page, "total_pages" => (all_users.size.to_f / per_page).ceil.to_i } end +def error_on_modify_frozen + RUBY_VERSION =~ /1.8/ ? TypeError : RuntimeError +end + def capture_exception(&block) begin block.call rescue => e return e \ No newline at end of file