Refactor AccountMigration::Signable spec without mocking
This commit is contained in:
parent
d9a02119b8
commit
45dc3d5dc3
1 changed files with 1 additions and 4 deletions
|
|
@ -14,8 +14,6 @@ module DiasporaFederation
|
|||
def new_identity
|
||||
"new"
|
||||
end
|
||||
|
||||
def freeze; end
|
||||
end
|
||||
|
||||
it_behaves_like "a signable" do
|
||||
|
|
@ -31,8 +29,7 @@ module DiasporaFederation
|
|||
|
||||
describe "#signature_data" do
|
||||
it "delegates to #unique_migration_descriptor" do
|
||||
expect(entity).to receive(:unique_migration_descriptor).and_return("test123")
|
||||
expect(entity.signature_data).to eq("test123")
|
||||
expect(entity.signature_data).to eq("AccountMigration:old:new")
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in a new issue