refactor chart windows

This commit is contained in:
Lee Lawlor
2014-08-02 14:36:38 -04:00
parent b598a83e37
commit 5789de8f1d
3 changed files with 42 additions and 38 deletions

View File

@ -20,9 +20,10 @@ describe ChannelsController do
it "should allow a new channel to be created" do
post :create
channel = Channel.last
response.should be_redirect
channel_id = Channel.all.last.id
response.should redirect_to( channel_path(channel_id, :anchor => "channelsettings"))
response.should redirect_to( channel_path(channel.id, :anchor => "channelsettings"))
channel.windows.where(window_type: 'chart').count.should eq(2)
end
it "should allow a channel to be edited" do