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
|
def new_identity
|
||||||
"new"
|
"new"
|
||||||
end
|
end
|
||||||
|
|
||||||
def freeze; end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
it_behaves_like "a signable" do
|
it_behaves_like "a signable" do
|
||||||
|
|
@ -31,8 +29,7 @@ module DiasporaFederation
|
||||||
|
|
||||||
describe "#signature_data" do
|
describe "#signature_data" do
|
||||||
it "delegates to #unique_migration_descriptor" do
|
it "delegates to #unique_migration_descriptor" do
|
||||||
expect(entity).to receive(:unique_migration_descriptor).and_return("test123")
|
expect(entity.signature_data).to eq("AccountMigration:old:new")
|
||||||
expect(entity.signature_data).to eq("test123")
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue