Sha256: 7a541f0672d8d3728b832461b34c6b5c231ce6598390cbb61303826e44cb2154
Contents?: true
Size: 1 KB
Versions: 19
Compression:
Stored size: 1 KB
Contents
RSpec.describe "EitilWrapper::Callbacks" do let(:callbacks) { User.instance_methods(false) } context "for columns of datatype: boolean" do it "should create the callback .{column_name}_became_true" do expect(callbacks).to include(:confirmed_became_true) end it "should create the callback .{column_name}_becomes_true" do expect(callbacks).to include(:confirmed_becomes_true) end it "should create the callback .{column_name}_to_true (works for both become and became)" do expect(callbacks).to include(:confirmed_to_true) end it "should create the callback .{column_name}_became_false" do expect(callbacks).to include(:confirmed_became_false) end it "should create the callback .{column_name}_becomes_false" do expect(callbacks).to include(:confirmed_becomes_false) end it "should create the callback .{column_name}_to_false (works for both become and became)" do expect(callbacks).to include(:confirmed_to_false) end end end
Version data entries
19 entries across 19 versions & 1 rubygems