spec/gitlab/client/snippets_spec.rb in gitlab-4.3.0 vs spec/gitlab/client/snippets_spec.rb in gitlab-4.4.0
- old
+ new
@@ -34,14 +34,14 @@
end
describe ".create_snippet" do
before do
stub_post("/projects/3/snippets", "snippet")
- @snippet = Gitlab.create_snippet(3, title: 'API', file_name: 'api.rb', code: 'code')
+ @snippet = Gitlab.create_snippet(3, title: 'API', file_name: 'api.rb', code: 'code', visibility: 'public')
end
it "gets the correct resource" do
- body = { title: 'API', file_name: 'api.rb', code: 'code' }
+ body = { title: 'API', file_name: 'api.rb', code: 'code', visibility: 'public' }
expect(a_post("/projects/3/snippets").with(body: body)).to have_been_made
end
it "returns information about a new snippet" do
expect(@snippet.file_name).to eq("mailer_test.rb")