2013-03-25 05:14:12 -04:00
|
|
|
module SharedSnippet
|
|
|
|
include Spinach::DSL
|
|
|
|
|
2013-03-24 18:17:38 -04:00
|
|
|
And 'I have public "Personal snippet one" snippet' do
|
|
|
|
create(:personal_snippet,
|
|
|
|
title: "Personal snippet one",
|
|
|
|
content: "Test content",
|
|
|
|
file_name: "snippet.rb",
|
|
|
|
private: false,
|
|
|
|
author: current_user)
|
|
|
|
end
|
|
|
|
|
|
|
|
And 'I have private "Personal snippet private" snippet' do
|
|
|
|
create(:personal_snippet,
|
|
|
|
title: "Personal snippet private",
|
|
|
|
content: "Provate content",
|
|
|
|
file_name: "private_snippet.rb",
|
|
|
|
private: true,
|
|
|
|
author: current_user)
|
|
|
|
end
|
|
|
|
end
|