Sha256: c5facd7c9a21b5dafc4d087c9049318b1b0dadaea6d62932d27b4e9e637ed237
Contents?: true
Size: 871 Bytes
Versions: 4
Compression:
Stored size: 871 Bytes
Contents
class DrinkingPerimeter < Kindergarten::Perimeter purpose :get_drunk # supposed to work def create_bar(args) Bar.create(scrub(args, :name, :description)) end # should raise Unscrubbed def create_bar_wo(args) Bar.create(args) end # should raise Unscrubbed def create_joint(args) Joint.create(args) end # should not raise Unscrubbed def build_joint(args) Joint.new(scrub(args, :name)) end # should raise Unscrubbed def build_dirty_joint Joint.new(:name => "dirty") end # should not raise Unscrubbed def update_bar(bar, args) bar.update_attributes(scrub(args, :name, :city, :street)) end # should raise def update_bar_dirty(bar, args) bar.update_attributes(args) end sandbox :create_bar, :create_bar_wo, :create_joint, :build_joint, :build_dirty_joint, :update_bar, :update_bar_dirty end
Version data entries
4 entries across 4 versions & 1 rubygems