This is how I'd write this. No problem with the way you did, but this might be more readable.

```ruby
context "invalid movie title" do
  it "should return :no_movie_found" do
    Api.stub(:get_url_as_json) { JSON.parse(File.read("spec/fixtures/invalid.json"))
    Api.search_by_title("hgh").should eq(:no_movie_found)
  end
end
```