require "spec_helper"
     
describe "AdminFu samples" do
  
  it "should show the form sample page" do
    visit admin_fu_sample_path('form')
    page.should have_selector("form")
    page.should have_content("News Article")
  end
  
  it "should show the text sample page" do
    visit admin_fu_sample_path('text')
    page.should have_content("About")
    page.should have_content("Credits")
  end
  
  it "should show the list sample page" do
    visit admin_fu_sample_path('list')
    page.should have_selector("input[value='Search']")
    find('table').should have_content('Actions')    
  end 
  
end