diff options
author | Marc Siegfriedt <marc@techaccelerator.com> | 2016-08-30 02:58:32 +0300 |
---|---|---|
committer | Marc Siegfriedt <marc@techaccelerator.com> | 2016-10-05 20:42:52 +0300 |
commit | a1ee8cf5ad07256807f15590bdb5f56152d55553 (patch) | |
tree | 9f90bc8f0d3c5d65e9b8778bc9d80e4ecd8855dd /spec/services | |
parent | 4bc27cd17b304abce01fad1fce56fce32a4ee099 (diff) |
multi-file commit
add docs and tests - add additional validation
allow move without content
updated response
Diffstat (limited to 'spec/services')
-rw-r--r-- | spec/services/files/update_service_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/services/files/update_service_spec.rb b/spec/services/files/update_service_spec.rb index d019e50649f..d3c37c7820f 100644 --- a/spec/services/files/update_service_spec.rb +++ b/spec/services/files/update_service_spec.rb @@ -41,7 +41,7 @@ describe Files::UpdateService do it "returns a hash with the :success status " do results = subject.execute - expect(results).to match({ status: :success }) + expect(results[:status]).to match(:success) end it "updates the file with the new contents" do @@ -69,7 +69,7 @@ describe Files::UpdateService do it "returns a hash with the :success status " do results = subject.execute - expect(results).to match({ status: :success }) + expect(results[:status]).to match(:success) end it "updates the file with the new contents" do |