Skip to content

Commit

Permalink
Minor wording fix
Browse files Browse the repository at this point in the history
  • Loading branch information
escowles committed Aug 17, 2015
1 parent fc3259a commit 955d19a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion spec/forms/generic_file_edit_form_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
let(:params) { ActionController::Parameters.new(title: ['foo'], description: [''], 'permissions_attributes' => { '2' => { 'access' => 'edit', '_destroy' => 'true', 'id' => 'a987551e-b87f-427a-8721-3e5942273125' } }) }
subject { described_class.model_attributes(params) }

it 'onlies change title' do
it 'changes only the title' do
expect(subject['title']).to eq ['foo']
expect(subject['description']).to be_empty
expect(subject['permissions_attributes']).to eq('2' => { 'access' => 'edit', 'id' => 'a987551e-b87f-427a-8721-3e5942273125', '_destroy' => 'true' })
Expand Down
2 changes: 1 addition & 1 deletion spec/models/generic_file_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@
expect(subject.edit_users).to eq ['jcoyne']
end

it 'onlies revoke eligible groups' do
it 'revokes only eligible groups' do
subject.set_read_groups(['group-2', 'group-3'], ['group-6'])
# 'group-7' is not eligible to be revoked
expect(subject.read_groups).to match_array ['group-2', 'group-3', 'group-7']
Expand Down

0 comments on commit 955d19a

Please sign in to comment.