diff options
Diffstat (limited to 'spec')
-rw-r--r-- | spec/requests/refinery/blog/admin/categories_spec.rb | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/spec/requests/refinery/blog/admin/categories_spec.rb b/spec/requests/refinery/blog/admin/categories_spec.rb new file mode 100644 index 0000000..60a92ab --- /dev/null +++ b/spec/requests/refinery/blog/admin/categories_spec.rb @@ -0,0 +1,20 @@ +require 'spec_helper' + +describe "Categories admin" do + login_refinery_user + + let(:title) { "lol" } + + it "can create categories" do + visit refinery_admin_root_path + + within("nav#menu") { click_link "Blog" } + within("nav.multilist") { click_link "Create new category" } + + fill_in "Title", :with => title + click_button "Save" + + category = Refinery::Blog::Category.first + category.title.should eq(title) + end +end |