File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 1616
1717__block GTRemote *remote = nil;
1818__block GTRepository *repository = nil ;
19+ __block GTConfiguration *configuration = nil ;
1920NSString *fetchRefspec = @" +refs/heads/*:refs/remotes/origin/*" ;
2021
2122beforeEach (^{
2223 repository = self.testAppFixtureRepository ;
2324 expect (repository).notTo (beNil ());
2425
2526 NSError *error = nil ;
26- GTConfiguration * configuration = [repository configurationWithError: &error];
27+ configuration = [repository configurationWithError: &error];
2728 expect (configuration).notTo (beNil ());
2829 expect (error).to (beNil ());
2930
5354 expect (@([remote updateURLString: newURLString error: &error])).to (beTruthy ());
5455 expect (error).to (beNil ());
5556
57+ // Reload remote from disk to pick up the change
58+ remote = configuration.remotes [0 ];
59+
5660 expect (remote.URLString ).to (equal (newURLString));
5761 });
5862
6569 expect (@([remote addFetchRefspec: newFetchRefspec error: &error])).to (beTruthy ());
6670 expect (error).to (beNil ());
6771
72+ // Reload remote from disk to pick up the change
73+ remote = configuration.remotes [0 ];
74+
6875 expect (remote.fetchRefspecs ).to (equal ((@[ fetchRefspec, newFetchRefspec ])));
6976 });
7077});
You can’t perform that action at this time.
0 commit comments