require 'spec_helper'

describe "Dashboard Feed" do
  describe "GET /" do
    let!(:user) { Factory :user }

    context "projects atom feed via private token" do
      it "should render projects atom feed" do
        visit dashboard_path(:atom, private_token: user.private_token)
        page.body.should have_selector("feed title")
      end
    end

    context "projects page via private token" do
      it "should redirect to login page" do
        visit dashboard_path(private_token: user.private_token)
        current_path.should == new_user_session_path
      end
    end
  end
end

require 'spec_helper'

describe "Dashboard Feed" do
  describe "GET /" do
    let!(:user) { Factory :user }

    context "projects atom feed via private token" do
      it "should render projects atom feed" do
        visit dashboard_path(:atom, private_token: user.private_token)
        page.body.should have_selector("feed title")
      end
    end
  end
end

Remove atom Dashboard spec that no longer applies
Remove atom Dashboard spec that no longer applies
