require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper')

describe "/node_classes/edit.html.haml" do
  include NodeClassesHelper

  describe "successful render" do
    before :each do
      assigns[:node_class] = @node_class = NodeClass.generate!
      render
    end

    specify { response.should be_success }
    it { should have_tag('form[method=?][action=?]', 'post', node_class_path(@node_class)) }
  end
end
