rspec let to stop repetation of same code

using let of rspec for non repetative declaration
Merge pull request #947 from rajcybage/fix_spec

rspec `let` to stop repetation of same code