When before syntax is called in Rspec

May 11, 2015

Reading time ~1 minute

Outline

When before syntax is called in Rspec. ?

Example

describe "before spec example" do

  before(:all) do
    # do somthing all(1)
  end

  before(:each) do
    # do somthing each(1)
  end

  it "" doa
    # execute : before all(1)
    # execute : before each(1)
  end

  context "" do

    before(:all) do
	  # do somthing all(2)
    end

    before(:each) do
      # do somthing each(2)
    end

    it "" do
      # execute : before all(2)
      # execute : before each(1)
      # execute : before each(2)
    end
    context "" do
      it "" do
        # execute : before each(1)
        # execute : before each(2)
      end
    end

  end

end

add ticket number to git commit automatically

Most of ticket tracker like Github, pivotal tracker have function to connect your commit to ticket(story).But every time when you commit ...… Continue reading

I will build frontend and backend separately

Published on September 28, 2016

order of angular controller's initialisation

Published on October 05, 2015