This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| before :each do | |
| @user = User.make | |
| @request.env["devise.mapping"] = Devise.mappings[:user] | |
| sign_in @user | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'spec_helper' | |
| require 'ruby-debug' | |
| describe BroadcastsController do | |
| before :each do | |
| @user = User.make! | |
| sign_in :user, @user | |
| end | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'spec_helper' | |
| require 'ruby-debug' | |
| describe BroadcastsController do | |
| before :each do | |
| @user = User.make! | |
| sign_in :user, @user | |
| end | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'spec_helper' | |
| require 'ruby-debug' | |
| describe BroadcastsController do | |
| before :each do | |
| @user = User.make! | |
| sign_in :user, @user | |
| end | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'spec_helper' | |
| require 'ruby-debug' | |
| describe BroadcastsController do | |
| before :all do | |
| @user = User.make! | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| User.blueprint do | |
| email { "test#{sn}@test.com" } | |
| password { "password" } | |
| password_confirmation { "password" } | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Broadcast.blueprint do | |
| tracks { [Track.make] } | |
| name { "name#{sn}" } | |
| user { User.make! } | |
| en |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| has_attached_file :media, { | |
| :url => "/tracks/:id/:style.:format", | |
| # Should I get rid of media access token | |
| :path => ":rails_root/tracks/:id/:style.:format", | |
| :processors => [:ffmpeg], | |
| :styles => { | |
| :mp3 => { :format => 'mp3' }, | |
| :ogg => { :format => 'ogg' } | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| gem "handlebars-rails", :git => 'https://github.com/yabawock/handlebars-rails.git' | |
| NoMethodError: undefined method `write' for #<Syck::Emitter:0x007f8f05d66730> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def create | |
| @broadcast = current_user.broadcasts.create(params[:broadcast]) | |
| respond_with @broadcast | |
| end | |
| it "should fail when the broadcast cannot be created" do | |
| post :create, :broadcast => {}, :format => :json | |
| response.status.should == 400 | |
| end |