Skip to content

Instantly share code, notes, and snippets.

View jeremiahlukus's full-sized avatar

Jeremiah Parrack jeremiahlukus

View GitHub Profile
5 describe "POST #create" do
4 describe "with valid params" do
3 it "creates a new inbound order" do
2 inbound_params = FactoryGirl.attributes_for(:inbound_order)
>> 1 document = Document.create(name: Faker::App.name, doc: File.new("#{Rails.root}/spec/fixtures/test_file.pdf"))
27 inbound_params.documents << document # this is stupid but I need to do the for the inbound order not the params
1 expect { post :create, :inbound_order => inbound_params }.to change(InboundOrder, :count).by(1)
2 end
3
#!/usr/bin/env bash
SCM_THEME_PROMPT_DIRTY=" ${red}✗"
SCM_THEME_PROMPT_CLEAN=" ${bold_green}✓"
SCM_THEME_PROMPT_PREFIX=" ${green}|"
SCM_THEME_PROMPT_SUFFIX="${green}|"
GIT_THEME_PROMPT_DIRTY=" ${red}✗"
GIT_THEME_PROMPT_CLEAN=" ${bold_green}✓"
GIT_THEME_PROMPT_PREFIX=" ${green}|"