some rspec codes