spec/unit/user_spec.rb in gds-sso-16.0.0 vs spec/unit/user_spec.rb in gds-sso-16.0.1
- old
+ new
@@ -29,39 +29,9 @@
"disabled" => false }
expect(GDS::SSO::User.user_params_from_auth_hash(@auth_hash)).to eq(expected)
end
context "making sure that the lint spec is valid" do
- class TestUser < OpenStruct
- include GDS::SSO::User
-
- def self.where(_opts)
- []
- end
-
- def self.create!(options, _scope = {})
- new(options)
- end
-
- def update_attribute(key, value)
- send("#{key}=".to_sym, value)
- end
-
- def update!(options)
- options.each do |key, value|
- update_attribute(key, value)
- end
- end
-
- def remotely_signed_out?
- remotely_signed_out
- end
-
- def disabled?
- disabled
- end
- end
-
let(:described_class) { TestUser }
it_behaves_like "a gds-sso user class"
end
end