Skip to content

Commit 230681c

Browse files
committed
Add regression spec
Add a regression spec to show bug with calling `really_destroy!` on a user which demonstrates issue #184.
1 parent 1389785 commit 230681c

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

spec/models/user_spec.rb

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,15 @@
7878
end
7979
end
8080

81+
describe '#really_destroy!' do
82+
let(:user) { create(:user) }
83+
84+
it 'removes the record from the database' do
85+
user.really_destroy!
86+
expect(Spree::User.with_deleted.exists?(id: user.id)).to eql false
87+
end
88+
end
89+
8190
describe "confirmable" do
8291
it "is confirmable if the confirmable option is enabled" do
8392
set_confirmable_option(true)

0 commit comments

Comments
 (0)